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
@@ -5,6 +5,8 @@
module Dodge.Data.Damage.Type where
import TH.Derive
import Data.Store
import Data.Binary
import Flat
import Data.Aeson
@@ -27,7 +29,7 @@ data DamageType
| POISONDAM
| ENTERREMENT
deriving (Eq, Ord, Show, Read, Enum, Bounded, Generic, Flat)
instance Binary DamageType
$($(derive [d| instance Deriving (Store DamageType) |]))
instance ToJSONKey DamageType