Attempt to make CWorld correct instance of Store
This commit is contained in:
@@ -9,6 +9,8 @@ import Data.Aeson
|
||||
import Data.Aeson.TH
|
||||
import qualified Data.Map.Strict as M
|
||||
import Dodge.Data.Damage.Type
|
||||
import TH.Derive
|
||||
import Data.Store
|
||||
|
||||
newtype GenParams = GenParams
|
||||
{ _sensorCoding :: M.Map DamageType (PaletteColor, DecorationShape)
|
||||
@@ -21,3 +23,5 @@ data DecorationShape = PLUS | SQUARE | CIRCLE | THREELINES
|
||||
makeLenses ''GenParams
|
||||
deriveJSON defaultOptions ''GenParams
|
||||
deriveJSON defaultOptions ''DecorationShape
|
||||
$($(derive [d| instance Deriving (Store GenParams) |]))
|
||||
$($(derive [d| instance Deriving (Store DecorationShape) |]))
|
||||
|
||||
Reference in New Issue
Block a user