Add Store instances
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
module Dodge.Data.GenParams where
|
||||
|
||||
import TH.Derive
|
||||
import Data.Store
|
||||
import Data.Binary
|
||||
import Flat
|
||||
import Color
|
||||
@@ -18,12 +20,12 @@ newtype GenParams = GenParams
|
||||
{ _sensorCoding :: M.Map DamageType (PaletteColor, DecorationShape)
|
||||
}
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
instance Binary GenParams
|
||||
|
||||
data DecorationShape = PLUS | SQUARE | CIRCLE | THREELINES
|
||||
deriving (Eq, Ord, Enum, Show, Read, Generic, Flat)
|
||||
instance Binary DecorationShape
|
||||
|
||||
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