duckling-0.1.3.0: A Haskell library for parsing text into structured data.
Duckling.TimeGrain.Types
data Grain Source #
Constructors
Instances
Methods
minBound :: Grain #
maxBound :: Grain #
succ :: Grain -> Grain #
pred :: Grain -> Grain #
toEnum :: Int -> Grain #
fromEnum :: Grain -> Int #
enumFrom :: Grain -> [Grain] #
enumFromThen :: Grain -> Grain -> [Grain] #
enumFromTo :: Grain -> Grain -> [Grain] #
enumFromThenTo :: Grain -> Grain -> Grain -> [Grain] #
(==) :: Grain -> Grain -> Bool #
(/=) :: Grain -> Grain -> Bool #
compare :: Grain -> Grain -> Ordering #
(<) :: Grain -> Grain -> Bool #
(<=) :: Grain -> Grain -> Bool #
(>) :: Grain -> Grain -> Bool #
(>=) :: Grain -> Grain -> Bool #
max :: Grain -> Grain -> Grain #
min :: Grain -> Grain -> Grain #
showsPrec :: Int -> Grain -> ShowS #
show :: Grain -> String #
showList :: [Grain] -> ShowS #
Associated Types
type Rep Grain :: * -> * #
from :: Grain -> Rep Grain x #
to :: Rep Grain x -> Grain #
hashWithSalt :: Int -> Grain -> Int #
hash :: Grain -> Int #
toJSON :: Grain -> Value #
toEncoding :: Grain -> Encoding #
toJSONList :: [Grain] -> Value #
toEncodingList :: [Grain] -> Encoding #
rnf :: Grain -> () #
showbPrec :: Int -> Grain -> Builder #
showb :: Grain -> Builder #
showbList :: [Grain] -> Builder #
showtPrec :: Int -> Grain -> Text #
showt :: Grain -> Text #
showtList :: [Grain] -> Text #
showtlPrec :: Int -> Grain -> Text #
showtl :: Grain -> Text #
showtlList :: [Grain] -> Text #
type ResolvedValue Grain :: * Source #
resolve :: Context -> Grain -> Maybe (ResolvedValue Grain) Source #
add :: UTCTime -> Grain -> Integer -> UTCTime Source #
inSeconds :: Grain -> Int -> Int Source #
lower :: Grain -> Grain Source #