Attempt to make CWorld correct instance of Store
This commit is contained in:
@@ -8,6 +8,8 @@ import Control.Lens
|
||||
import Data.Aeson
|
||||
import Data.Aeson.TH
|
||||
import Geometry.Data
|
||||
import TH.Derive
|
||||
import Data.Store
|
||||
|
||||
data LaserType
|
||||
= DamageLaser {_laserTypeDamage :: Int}
|
||||
@@ -36,3 +38,6 @@ makeLenses ''LaserType
|
||||
deriveJSON defaultOptions ''LaserType
|
||||
deriveJSON defaultOptions ''LaserStart
|
||||
deriveJSON defaultOptions ''Laser
|
||||
$($(derive [d| instance Deriving (Store LaserType) |]))
|
||||
$($(derive [d| instance Deriving (Store LaserStart) |]))
|
||||
$($(derive [d| instance Deriving (Store Laser) |]))
|
||||
|
||||
Reference in New Issue
Block a user