foscam-filename-0.0.1: Foscam File format

Safe HaskellNone
LanguageHaskell2010

Data.Foscam.File.Time

Synopsis

Documentation

class AsTime p f s where Source

Minimal complete definition

Nothing

Methods

_Time :: Optic' p f s Time Source

Instances

(Choice p, Applicative f) => AsTime p f String Source 
AsTime p f Time Source 
((~) (* -> * -> *) p (->), Functor f) => AsTime p f Filename Source 

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