Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Context = Context {}
- newtype DucklingTime = DucklingTime ZoneSeriesTime
- newtype Options = Options {
- withLatent :: Bool
- class (Eq (ResolvedValue a), Show (ResolvedValue a), ToJSON (ResolvedValue a)) => Resolve a where
- type ResolvedValue a
- resolve :: Context -> Options -> a -> Maybe (ResolvedValue a, Bool)
- fromUTC :: UTCTime -> TimeZone -> ZonedTime
- toUTC :: LocalTime -> UTCTime
Documentation
newtype DucklingTime Source #
Internal time reference.
We work as if we were in UTC time and use ZoneSeriesTime
to house the info.
We convert to local time at resolution, using fromUTC
.
Instances
Eq DucklingTime Source # | |
Defined in Duckling.Resolve (==) :: DucklingTime -> DucklingTime -> Bool # (/=) :: DucklingTime -> DucklingTime -> Bool # | |
Show DucklingTime Source # | |
Defined in Duckling.Resolve showsPrec :: Int -> DucklingTime -> ShowS # show :: DucklingTime -> String # showList :: [DucklingTime] -> ShowS # |
class (Eq (ResolvedValue a), Show (ResolvedValue a), ToJSON (ResolvedValue a)) => Resolve a where Source #
type ResolvedValue a Source #