,
)
runMaybeT $ do
bs <- MaybeT $ getParam k
t <- MaybeT . pure . parseISO8601 $ B.unpack bs
pure $ toThyme t
do
endpoints <- (,) <$> timeParam "after" <*> timeParam "before"
pure $ case endpoints of
(Just s, Just e) -> During s e
(Nothing, Just e) -> Before e
(Just s, Nothing) -> After s
(Nothing, Nothing) -> Always
runMaybeT $ do
bs <- MaybeT $ getParam k
MaybeT . pure . either (const Nothing) Just $ parseOnly decimal bs
( decimal