Start work on lasguns

This commit is contained in:
2022-07-06 22:24:02 +01:00
parent d63495e335
commit 0eb2fdc37e
9 changed files with 38 additions and 34 deletions
+6
View File
@@ -5,6 +5,7 @@ module LensHelp
, (++.~)
, (.*.*~)
, (.+.+~)
, (+.+.~)
) where
import Geometry
import Control.Lens
@@ -23,6 +24,11 @@ infixr 4 .+.+~
{-# INLINABLE (.+.+~) #-}
(.+.+~) m x = m %~ (x +.+)
infixr 4 +.+.~
(+.+.~) :: ASetter s t Point2 Point2 -> Point2 -> s -> t
{-# INLINABLE (+.+.~) #-}
(+.+.~) m x = m %~ (+.+ x)
infixr 4 .++~
(.++~) :: ASetter s t [a] [a] -> [a] -> s -> t
(.++~) m x = m %~ (x ++)