Attempt to make CWorld correct instance of Store
This commit is contained in:
@@ -3,10 +3,13 @@
|
||||
|
||||
module Dodge.Data.HUD where
|
||||
|
||||
import LinearHelp
|
||||
import Control.Lens
|
||||
import Data.Aeson
|
||||
import Data.Aeson.TH
|
||||
import Geometry.Data
|
||||
import TH.Derive
|
||||
import Data.Store
|
||||
|
||||
data HUDElement
|
||||
= DisplayInventory {_subInventory :: SubInventory}
|
||||
@@ -36,3 +39,6 @@ makeLenses ''SubInventory
|
||||
deriveJSON defaultOptions ''HUDElement
|
||||
deriveJSON defaultOptions ''SubInventory
|
||||
deriveJSON defaultOptions ''HUD
|
||||
$($(derive [d| instance Deriving (Store HUDElement) |]))
|
||||
$($(derive [d| instance Deriving (Store SubInventory) |]))
|
||||
$($(derive [d| instance Deriving (Store HUD) |]))
|
||||
|
||||
Reference in New Issue
Block a user