duckling-0.1.6.1: 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 #
toJSON :: Grain -> Value #
toEncoding :: Grain -> Encoding #
rnf :: Grain -> () #
hashWithSalt :: Int -> Grain -> Int #
hash :: Grain -> Int #
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 -> Options -> Grain -> Maybe (ResolvedValue Grain, Bool) Source #
add :: UTCTime -> Grain -> Integer -> UTCTime Source #
inSeconds :: Num a => Grain -> a -> a Source #
lower :: Grain -> Grain Source #