Move from store to flat
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
{-# LANGUAGE DeriveGeneric #-}
|
||||
{-# LANGUAGE DeriveAnyClass #-}
|
||||
{-# LANGUAGE StrictData #-}
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
|
||||
module Dodge.Data.Damage.Type where
|
||||
|
||||
import Flat
|
||||
import Data.Aeson
|
||||
import Data.Aeson.TH
|
||||
import TH.Derive
|
||||
@@ -24,11 +27,10 @@ data DamageType
|
||||
| PUSHDAM
|
||||
| POISONDAM
|
||||
| ENTERREMENT
|
||||
deriving (Eq, Ord, Show, Read, Enum, Bounded)
|
||||
deriving (Eq, Ord, Show, Read, Enum, Bounded, Generic, Flat)
|
||||
|
||||
instance ToJSONKey DamageType
|
||||
|
||||
instance FromJSONKey DamageType
|
||||
|
||||
deriveJSON defaultOptions ''DamageType
|
||||
$($(derive [d| instance Deriving (Store DamageType) |]))
|
||||
|
||||
Reference in New Issue
Block a user