Duckling.Ordinal.Types
newtype OrdinalData Source #
Constructors
Fields
Defined in Duckling.Ordinal.Types
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 :: Type -> Type #
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 -> Options -> OrdinalData -> Maybe (ResolvedValue OrdinalData, Bool) Source #
isBetween :: Ord a => a -> a -> a -> Bool Source #