Make Shapes use Streaming rather than Vector streaming

This commit is contained in:
2022-07-03 23:04:58 +01:00
parent 02fcb5f072
commit f9a904d52b
11 changed files with 54 additions and 47 deletions
+4 -3
View File
@@ -7,10 +7,11 @@ module Shape.Data
where
import Geometry.Data
import qualified Data.Vector.Fusion.Stream.Monadic as VS
--import qualified Data.Vector.Fusion.Stream.Monadic as VS
--import Data.Vector.Fusion.Util
import Control.Lens
type Shape = [ShapeObj]
import Streaming
type Shape = Stream (Of ShapeObj) IO ()
--_shVertices :: Shape -> [ShapeV]
--{-# INLINE _shVertices #-}
@@ -30,7 +31,7 @@ shEfromList = id
data ShapeObj = ShapeObj
{ _shType :: ShapeType
, _shVs :: VS.Stream IO ShapeV
, _shVs :: Stream (Of ShapeV) IO ()
}
deriving ()