duckling-0.1.5.0: A Haskell library for parsing text into structured data.

Safe HaskellNone
LanguageHaskell2010

Duckling.Resolve

Synopsis

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.

newtype Options Source #

Constructors

Options 

Fields

class ToJSON (ResolvedValue a) => Resolve a where Source #

Minimal complete definition

resolve

Associated Types

type ResolvedValue a Source #

Instances

Resolve GroupMatch Source # 
Resolve QuantityData Source # 
Resolve PhoneNumberData Source # 
Resolve OrdinalData Source # 
Resolve NumeralData Source # 
Resolve EmailData Source # 
Resolve DistanceData Source # 
Resolve AmountOfMoneyData Source # 
Resolve TemperatureData Source # 
Resolve Grain Source # 

Associated Types

type ResolvedValue Grain :: * Source #

Resolve TimeData Source # 
Resolve DurationData Source # 
Resolve UrlData Source # 
Resolve VolumeData Source # 

fromUTC :: UTCTime -> TimeZone -> ZonedTime Source #

Given a UTCTime and an TimeZone, build a ZonedTime (no conversion)

toUTC :: LocalTime -> UTCTime Source #

Given a LocalTime, build a UTCTime (no conversion)