Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module reexports functions and types you are most likely to use from ConditionalRestriction.Parse.*
.
Synopsis
- data Parser i a
- parse :: Parser i a -> i -> Result String (a, i)
- pConditionalRestriction :: Parser String ConditionalRestriction
- pCondition :: Parser String Condition
- pValue :: Parser String Value
- pOpeningHours :: Parser String OpeningHours
- data ConditionalRestriction
- data Condition
- data OpeningHours
- type ID = String
- data Value
- data Type
- type Token = String
Documentation
A generic parser. Takes an input type i
and returns an output type a
.
pConditionalRestriction :: Parser String ConditionalRestriction Source #
Parse conditional restrictions, e.g. "90 @ 18:00-22:00; 50 @ wet"
.
pOpeningHours :: Parser String OpeningHours Source #
Parse opening hours, e.g. "Di-Fr 08:00-20:00"
.
data ConditionalRestriction Source #
AST representation of a conditional restriction.
Instances
Show ConditionalRestriction Source # | |
Defined in ConditionalRestriction.Parse.AST showsPrec :: Int -> ConditionalRestriction -> ShowS # show :: ConditionalRestriction -> String # showList :: [ConditionalRestriction] -> ShowS # | |
Eq ConditionalRestriction Source # | |
Defined in ConditionalRestriction.Parse.AST |
data OpeningHours Source #
AST representation of opening hours. Not complete.
Instances
Show OpeningHours Source # | |
Defined in ConditionalRestriction.Parse.AST showsPrec :: Int -> OpeningHours -> ShowS # show :: OpeningHours -> String # showList :: [OpeningHours] -> ShowS # | |
Eq OpeningHours Source # | |
Defined in ConditionalRestriction.Parse.AST (==) :: OpeningHours -> OpeningHours -> Bool # (/=) :: OpeningHours -> OpeningHours -> Bool # |
Input data value, corresponding to input Type
s.
VBool Bool | Boolean value, e.g. |
VNum Double | Number value, e.g. |
VTime DateTime | Time value, e.g. |