Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
time :: (Monad f, CharParsing f) => f Time Source
>>>
parse time "test" "134122"
Right (Time 1 3 4 1 2 2)
>>>
parse time "test" "134122abc"
Right (Time 1 3 4 1 2 2)
>>>
parse time "test" "1341"
Left "test" (line 1, column 5): unexpected end of input expecting digit