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