Use strict tuples for SPics

This commit is contained in:
2024-10-01 01:20:29 +01:00
parent a98ec80f59
commit 5a4f2711c8
17 changed files with 69 additions and 481 deletions
+4 -3
View File
@@ -13,22 +13,23 @@ module ShapePicture
-- , mirrorSPxz
, overPosSP
) where
import ShapePicture.Data
import Shape
import Picture
import Geometry
import Data.Strict.Tuple
import Data.Bifunctor
--import Control.Lens
-- should all this be inlined/inlinable?
noPic :: Shape -> SPic
{-# INLINE noPic #-}
noPic = (,mempty)
noPic = (:!: mempty)
noShape :: Picture -> SPic
{-# INLINE noShape #-}
noShape = (mempty,)
noShape = (mempty :!:)
--_spShape :: SPic -> Shape
--_spShape = fst