| Copyright | (c) Pablo Couto 2014 |
|---|---|
| License | GPL-3 |
| Maintainer | pablo@infty.in |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Referees.Types.Internal
Description
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
Constructors
| Entry | |
Subtypes
Others
For parsing
data CSV_Warning Source
For warning about issues that may take place during parsing.
Constructors
| DifferingCapacities Name |
newtype StringListParse sep Source
Instances
| Eq (StringListParse sep) | |
| Show (StringListParse sep) | |
| FromField (StringListParse Semicolon) |
newtype MaybeCapacityParse Source
Constructors
| MaybeCapP | |
Fields | |
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]
Constructors
| CSVentry | |
Fields
| |
Instances