| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Duckling.Resolve
- data Context = Context {}
- newtype DucklingTime = DucklingTime ZoneSeriesTime
- class ToJSON (ResolvedValue a) => Resolve a where
- type ResolvedValue a
- fromUTC :: UTCTime -> TimeZone -> ZonedTime
- toUTC :: LocalTime -> UTCTime
Documentation
Constructors
| Context | |
Fields | |
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.
Constructors
| DucklingTime ZoneSeriesTime |
Instances
class ToJSON (ResolvedValue a) => Resolve a where Source #
Minimal complete definition
Associated Types
type ResolvedValue a Source #
Instances