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