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

Duckling.TimeGrain.Types

Documentation

data Grain Source #

Instances

Instances details
Bounded Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

Enum Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

Eq Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

Methods

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

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

Ord Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

Methods

compare :: Grain -> Grain -> Ordering #

(<) :: Grain -> Grain -> Bool #

(<=) :: Grain -> Grain -> Bool #

(>) :: Grain -> Grain -> Bool #

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

max :: Grain -> Grain -> Grain #

min :: Grain -> Grain -> Grain #

Show Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

Methods

showsPrec :: Int -> Grain -> ShowS #

show :: Grain -> String #

showList :: [Grain] -> ShowS #

Generic Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

Associated Types

type Rep Grain :: Type -> Type #

Methods

from :: Grain -> Rep Grain x #

to :: Rep Grain x -> Grain #

Hashable Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

Methods

hashWithSalt :: Int -> Grain -> Int #

hash :: Grain -> Int #

ToJSON Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

NFData Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

Methods

rnf :: Grain -> () #

TextShow Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

Resolve Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

Associated Types

type ResolvedValue Grain Source #

type Rep Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

type Rep Grain = D1 ('MetaData "Grain" "Duckling.TimeGrain.Types" "duckling-0.2.0.0-4AU1pRwMU7E8YjNdB7ILfy" 'False) (((C1 ('MetaCons "NoGrain" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Second" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Minute" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Hour" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Day" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Week" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Month" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Quarter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Year" 'PrefixI 'False) (U1 :: Type -> Type)))))
type ResolvedValue Grain Source # 
Instance details

Defined in Duckling.TimeGrain.Types

inSeconds :: Num a => Grain -> a -> a Source #