Added haddock documentation

This commit is contained in:
macocianradu
2021-11-30 22:33:44 +01:00
parent 70baa17a4e
commit ff25395b68
18 changed files with 136 additions and 73 deletions

View File

@@ -1,11 +1,13 @@
module Model.Enum where
-- |The representation of a Rosetta enum data type
data EnumType = MakeEnum {
enumName :: String,
enumDescription :: Maybe String,
enumValues :: [EnumValue]
} deriving (Show, Eq)
-- |The representation of a Rosetta enum value type
data EnumValue = MakeEnumValue {
enumValueName :: String,
enumValueDescription :: Maybe String,