Copyright | (c) Pablo Couto 2014 |
---|---|
License | GPL-3 |
Maintainer | pablo@infty.in |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Types and constructors for use in Referees.
- type Name = String
- type Language = String
- type Area = String
- type Subarea = String
- data Entry subtype = Entry {}
- data Referee = Referee
- data Proposal = Proposal
- type Match = (Entry Referee, [Entry Proposal])
- data CSV_Warning = DifferingCapacities Name
- newtype StringListParse sep = StrLstP {}
- data Semicolon = Semicolon
- newtype MaybeCapacityParse = MaybeCapP {}
- data CSVentry = CSVentry {}
Core types
Subtypes
Others
For parsing
data CSV_Warning Source
For warning about issues that may take place during parsing.
newtype StringListParse sep Source
Eq (StringListParse sep) | |
Show (StringListParse sep) | |
FromField (StringListParse Semicolon) |
newtype MaybeCapacityParse Source
This type and its FromField
instance declarations are used to describe
the parsing rules for reconstruction of Entry
values from CSV files.
The two FromField
instance declarations here (vid. source) enable silent
conditional parsing of the second field in a CSV file with 4 fields. In this
scenario, if the second field is parseable as Int
, it is parsed as
MaybeCapacityParse
(a wrapper for Maybe
Capacity
); otherwise, as
StringListParse
Semicolon
(a wrapper for [
).String
]
CSVentry | |
|