Move from store to flat
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
{-# LANGUAGE DeriveGeneric #-}
|
||||
{-# LANGUAGE DeriveAnyClass #-}
|
||||
{-# LANGUAGE StrictData #-}
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
|
||||
module Dodge.Data.Payload where
|
||||
|
||||
import Flat
|
||||
import Data.Aeson
|
||||
import Data.Aeson.TH
|
||||
import TH.Derive
|
||||
import Data.Store
|
||||
|
||||
data Payload = ExplosionPayload | DudPayload
|
||||
deriving (Show, Read, Eq, Ord, Enum, Bounded)
|
||||
deriving (Show, Read, Eq, Ord, Enum, Bounded, Generic, Flat)
|
||||
|
||||
deriveJSON defaultOptions ''Payload
|
||||
$($(derive [d| instance Deriving (Store Payload) |]))
|
||||
|
||||
Reference in New Issue
Block a user