Refactor, try to limit dependencies
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
{-# LANGUAGE DeriveGeneric #-}
|
||||
{-# LANGUAGE StrictData #-}
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
|
||||
module Dodge.Data.CamouflageStatus where
|
||||
import GHC.Generics
|
||||
|
||||
import Data.Aeson
|
||||
import Data.Aeson.TH
|
||||
|
||||
data CamouflageStatus
|
||||
= FullyVisible
|
||||
| Invisible
|
||||
deriving (Eq,Ord,Enum,Read,Show,Bounded,Generic)
|
||||
instance ToJSON CamouflageStatus where
|
||||
toEncoding = genericToEncoding defaultOptions
|
||||
instance FromJSON CamouflageStatus
|
||||
deriving (Eq, Ord, Enum, Read, Show, Bounded)
|
||||
|
||||
deriveJSON defaultOptions ''CamouflageStatus
|
||||
|
||||
Reference in New Issue
Block a user