Add Store instances

This commit is contained in:
2022-08-21 12:21:05 +01:00
parent 1ce7d4a72d
commit dd62e30026
92 changed files with 465 additions and 255 deletions
+3 -1
View File
@@ -4,6 +4,8 @@
{-# LANGUAGE TemplateHaskell #-}
module Dodge.Data.Item.Location where
import TH.Derive
import Data.Store
import Data.Binary
import Flat
import Control.Lens
@@ -16,7 +18,7 @@ data ItemLocation
| OnFloor {_ipFlID :: Int}
| InVoid
deriving (Eq, Show, Read, Ord, Generic, Flat)
instance Binary ItemLocation
$($(derive [d| instance Deriving (Store ItemLocation) |]))
makeLenses ''ItemLocation
deriveJSON defaultOptions ''ItemLocation