Add Read/Show instance for Creature
This commit is contained in:
@@ -12,10 +12,11 @@ data CreatureDropType
|
||||
= DropAll
|
||||
| DropAmount Int
|
||||
| DropSpecific [Int]
|
||||
deriving (Eq,Ord,Show,Read)
|
||||
data CrSpState
|
||||
= Barrel { _piercedPoints :: [Point2]}
|
||||
| GenCr
|
||||
deriving (Eq,Show,Ord)
|
||||
deriving (Eq,Ord,Show,Read)
|
||||
data Faction
|
||||
= GenericFaction Int
|
||||
| ZombieFaction
|
||||
@@ -25,7 +26,7 @@ data Faction
|
||||
| NoFaction
|
||||
| ColorFaction Color
|
||||
| PlayerFaction
|
||||
deriving (Eq,Show)
|
||||
deriving (Eq,Ord,Show,Read)
|
||||
data CrGroup
|
||||
= LoneWolf
|
||||
| Swarm
|
||||
@@ -34,5 +35,5 @@ data CrGroup
|
||||
}
|
||||
| CrGroupID { _crGroupID :: Int }
|
||||
| ShieldGroup
|
||||
deriving (Eq, Show)
|
||||
deriving (Eq,Ord,Show,Read)
|
||||
makeLenses ''CrSpState
|
||||
|
||||
Reference in New Issue
Block a user