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.Shockwave where
|
||||
|
||||
import Flat
|
||||
import Color
|
||||
import Control.Lens
|
||||
import Data.Aeson
|
||||
@@ -12,7 +15,7 @@ import TH.Derive
|
||||
import Data.Store
|
||||
|
||||
data ShockwaveDirection = OutwardShockwave | InwardShockwave
|
||||
deriving (Eq, Ord, Show, Read)
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
|
||||
data Shockwave = Shockwave
|
||||
{ _swColor :: Color
|
||||
@@ -25,10 +28,8 @@ data Shockwave = Shockwave
|
||||
, _swMaxTime :: Int
|
||||
, _swTimer :: Int
|
||||
}
|
||||
deriving (Eq, Ord, Show, Read)
|
||||
deriving (Eq, Ord, Show, Read, Generic, Flat)
|
||||
|
||||
makeLenses ''Shockwave
|
||||
deriveJSON defaultOptions ''ShockwaveDirection
|
||||
deriveJSON defaultOptions ''Shockwave
|
||||
$($(derive [d| instance Deriving (Store ShockwaveDirection) |]))
|
||||
$($(derive [d| instance Deriving (Store Shockwave) |]))
|
||||
|
||||
Reference in New Issue
Block a user