duckling-0.1.2.0: A Haskell library for parsing text into structured data.
Duckling.Ordinal.Types
newtype OrdinalData Source #
Constructors
Fields
Instances
Methods
(==) :: OrdinalData -> OrdinalData -> Bool #
(/=) :: OrdinalData -> OrdinalData -> Bool #
compare :: OrdinalData -> OrdinalData -> Ordering #
(<) :: OrdinalData -> OrdinalData -> Bool #
(<=) :: OrdinalData -> OrdinalData -> Bool #
(>) :: OrdinalData -> OrdinalData -> Bool #
(>=) :: OrdinalData -> OrdinalData -> Bool #
max :: OrdinalData -> OrdinalData -> OrdinalData #
min :: OrdinalData -> OrdinalData -> OrdinalData #
showsPrec :: Int -> OrdinalData -> ShowS #
show :: OrdinalData -> String #
showList :: [OrdinalData] -> ShowS #
Associated Types
type Rep OrdinalData :: * -> * #
from :: OrdinalData -> Rep OrdinalData x #
to :: Rep OrdinalData x -> OrdinalData #
hashWithSalt :: Int -> OrdinalData -> Int #
hash :: OrdinalData -> Int #
toJSON :: OrdinalData -> Value #
toEncoding :: OrdinalData -> Encoding #
toJSONList :: [OrdinalData] -> Value #
toEncodingList :: [OrdinalData] -> Encoding #
rnf :: OrdinalData -> () #
type ResolvedValue OrdinalData :: * Source #
resolve :: Context -> OrdinalData -> Maybe (ResolvedValue OrdinalData) Source #
isBetween :: Ord a => a -> a -> a -> Bool Source #