Add Read/Show instance for Creature

This commit is contained in:
2022-07-22 10:44:54 +01:00
parent 4c5218c633
commit 6b69fc1684
35 changed files with 345 additions and 225 deletions
+3 -4
View File
@@ -1,11 +1,10 @@
{-# LANGUAGE TupleSections #-}
module ShapePicture
( --emptyBlank
translateSP
( module ShapePicture.Data
, translateSP
, translateSPf
, translateSPz
, rotateSP
, SPic
, noPic
, noShape
-- , _spShape
@@ -14,6 +13,7 @@ module ShapePicture
, mirrorSPxz
, overPosSP
) where
import ShapePicture.Data
import Shape
import Picture
import Geometry
@@ -22,7 +22,6 @@ import Data.Bifunctor
import Control.Lens
--import qualified Streaming.Prelude as S
type SPic = (Shape, Picture)
shMap :: (ShapeObj -> ShapeObj) -> Shape -> Shape
shMap = map