Duckling.TimeGrain.Types
data Grain Source #
Constructors
Defined in Duckling.TimeGrain.Types
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 :: Type -> Type #
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 -> Options -> Grain -> Maybe (ResolvedValue Grain, Bool) Source #
add :: UTCTime -> Grain -> Integer -> UTCTime Source #
inSeconds :: Num a => Grain -> a -> a Source #
lower :: Grain -> Grain Source #