Safe Haskell | None |
---|---|
Language | Haskell2010 |
The type of definitions of screen layout and features.
Synopsis
- data ScreenContent = ScreenContent {
- rwidth :: X
- rheight :: Y
- rwebAddress :: String
- rintroScreen :: ([String], [[String]])
- rapplyVerbMap :: EnumMap (ContentSymbol ItemKind) Text
- rFontFiles :: [(FilePath, ByteString)]
- emptyScreenContent :: ScreenContent
- makeData :: RuleContent -> ScreenContent -> ScreenContent
- emptyScreenContentRaw :: ScreenContent
- validateSingle :: RuleContent -> ScreenContent -> [Text]
Documentation
data ScreenContent Source #
Screen layout and features definition.
Warning: this type is not abstract, but its values should not be
created ad hoc, even for unit tests, but should be constructed
with makeData
, which includes validation,
The emptyScreenContent
is one such valid by construction value
of this type. It's suitable for bootstrapping and for testing.
ScreenContent | |
|
makeData :: RuleContent -> ScreenContent -> ScreenContent Source #
Internal operations
validateSingle :: RuleContent -> ScreenContent -> [Text] Source #
Catch invalid rule kind definitions.