Module for the core result type, and related functions
- data Result e ok
- data FormId = FormId {
- formPrefix :: String
- formId :: Integer
- data FormRange = FormRange FormId FormId
- incrementFormId :: FormId -> FormId
- isInRange :: FormId -> FormRange -> Bool
- isSubRange :: FormRange -> FormRange -> Bool
- retainErrors :: FormRange -> [(FormRange, e)] -> [e]
- retainChildErrors :: FormRange -> [(FormRange, e)] -> [e]
Documentation
Type for failing computations
An ID used to identify forms
FormId | |
|
A range of ID's to specify a group of forms
incrementFormId :: FormId -> FormIdSource
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