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

Safe HaskellNone
LanguageHaskell2010

Duckling.TimeGrain.Types

Documentation

data Grain Source #

Constructors

Second 
Minute 
Hour 
Day 
Week 
Month 
Quarter 
Year 

Instances

Bounded Grain Source # 
Enum Grain Source # 
Eq Grain Source # 

Methods

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

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

Ord Grain Source # 

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 # 

Methods

showsPrec :: Int -> Grain -> ShowS #

show :: Grain -> String #

showList :: [Grain] -> ShowS #

Generic Grain Source # 

Associated Types

type Rep Grain :: * -> * #

Methods

from :: Grain -> Rep Grain x #

to :: Rep Grain x -> Grain #

Hashable Grain Source # 

Methods

hashWithSalt :: Int -> Grain -> Int #

hash :: Grain -> Int #

ToJSON Grain Source # 
NFData Grain Source # 

Methods

rnf :: Grain -> () #

TextShow Grain Source # 
Resolve Grain Source # 

Associated Types

type ResolvedValue Grain :: * Source #

type Rep Grain Source # 
type Rep Grain = D1 (MetaData "Grain" "Duckling.TimeGrain.Types" "duckling-0.1.2.0-4kNLeMarmI05ZcZPmDT5Pl" False) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "Second" PrefixI False) U1) (C1 (MetaCons "Minute" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Hour" PrefixI False) U1) (C1 (MetaCons "Day" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "Week" PrefixI False) U1) (C1 (MetaCons "Month" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Quarter" PrefixI False) U1) (C1 (MetaCons "Year" PrefixI False) U1))))
type ResolvedValue Grain Source #