duckling-0.2.0.0: A Haskell library for parsing text into structured data.
Safe HaskellNone
LanguageHaskell2010

Duckling.Resolve

Synopsis

Documentation

data Context Source #

Constructors

Context 

Instances

Instances details
Eq Context Source # 
Instance details

Defined in Duckling.Resolve

Methods

(==) :: Context -> Context -> Bool #

(/=) :: Context -> Context -> Bool #

Show Context Source # 
Instance details

Defined in Duckling.Resolve

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

Instances details
Eq DucklingTime Source # 
Instance details

Defined in Duckling.Resolve

Show DucklingTime Source # 
Instance details

Defined in Duckling.Resolve

newtype Options Source #

Constructors

Options 

Fields

Instances

Instances details
Eq Options Source # 
Instance details

Defined in Duckling.Resolve

Methods

(==) :: Options -> Options -> Bool #

(/=) :: Options -> Options -> Bool #

Show Options Source # 
Instance details

Defined in Duckling.Resolve

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

Associated Types

type ResolvedValue a Source #

Instances

Instances details
Resolve GroupMatch Source # 
Instance details

Defined in Duckling.Regex.Types

Associated Types

type ResolvedValue GroupMatch Source #

Resolve QuantityData Source # 
Instance details

Defined in Duckling.Quantity.Types

Associated Types

type ResolvedValue QuantityData Source #

Resolve PhoneNumberData Source # 
Instance details

Defined in Duckling.PhoneNumber.Types

Associated Types

type ResolvedValue PhoneNumberData Source #

Resolve OrdinalData Source # 
Instance details

Defined in Duckling.Ordinal.Types

Associated Types

type ResolvedValue OrdinalData Source #

Resolve NumeralData Source # 
Instance details

Defined in Duckling.Numeral.Types

Associated Types

type ResolvedValue NumeralData Source #

Resolve EmailData Source # 
Instance details

Defined in Duckling.Email.Types

Associated Types

type ResolvedValue EmailData Source #

Resolve DistanceData Source # 
Instance details

Defined in Duckling.Distance.Types

Associated Types

type ResolvedValue DistanceData Source #

Resolve CreditCardNumberData Source # 
Instance details

Defined in Duckling.CreditCardNumber.Types

Resolve AmountOfMoneyData Source # 
Instance details

Defined in Duckling.AmountOfMoney.Types

Resolve TemperatureData Source # 
Instance details

Defined in Duckling.Temperature.Types

Associated Types

type ResolvedValue TemperatureData Source #

Resolve Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

Associated Types

type ResolvedValue Grain Source #

Resolve TimeData Source # 
Instance details

Defined in Duckling.Time.Types

Associated Types

type ResolvedValue TimeData Source #

Resolve DurationData Source # 
Instance details

Defined in Duckling.Duration.Types

Associated Types

type ResolvedValue DurationData Source #

Resolve UrlData Source # 
Instance details

Defined in Duckling.Url.Types

Associated Types

type ResolvedValue UrlData Source #

Resolve VolumeData Source # 
Instance details

Defined in Duckling.Volume.Types

Associated Types

type ResolvedValue 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)