Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Module for the core result type, and related functions
Synopsis
- data Result e ok
- getResult :: Result e ok -> Maybe ok
- data FormId
- zeroId :: String -> FormId
- mapId :: ([Integer] -> [Integer]) -> FormId -> FormId
- formIdList :: FormId -> [Integer]
- data FormRange = FormRange FormId FormId
- incrementFormId :: FormId -> FormId
- unitRange :: FormId -> FormRange
- isInRange :: FormId -> FormRange -> Bool
- isSubRange :: FormRange -> FormRange -> Bool
- retainErrors :: FormRange -> [(FormRange, e)] -> [e]
- retainChildErrors :: FormRange -> [(FormRange, e)] -> [e]
Documentation
Type for failing computations
mapId :: ([Integer] -> [Integer]) -> FormId -> FormId Source #
map a function over the [Integer]
inside a FormId
formIdList :: FormId -> [Integer] Source #
Stack indicating field. Head is most specific to this item
incrementFormId :: FormId -> FormId Source #
Increment a form ID
retainErrors :: FormRange -> [(FormRange, e)] -> [e] Source #
Select the errors for a certain range
retainChildErrors :: FormRange -> [(FormRange, e)] -> [e] Source #
Select the errors originating from this form or from any of the children of this form