Attempt to make CWorld correct instance of Store

This commit is contained in:
2022-08-20 15:53:37 +01:00
parent e1a555ea02
commit 8571ab9254
89 changed files with 570 additions and 19 deletions
+8
View File
@@ -1,8 +1,13 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TemplateHaskell #-}
module Color where
import GHC.Generics
import Data.Aeson
import Geometry
import LinearHelp
import TH.Derive
import Data.Store
data PaletteColor = RED | GREEN | BLUE | YELLOW | CYAN
| MAGENTA | ROSE | VIOLET | AZURE | AQUAMARINE | CHARTREUSE | ORANGE | WHITE | BLACK
@@ -134,3 +139,6 @@ numColor _ = toV4 (1,1,1,1)
light4 :: Color -> Color
light4 = light . light . light . light
$($(derive [d| instance Deriving (Store PaletteColor) |]))
-- $($(derive [d| instance Deriving (Store ProximityRequirement) |]))