duckling-0.1.6.1: 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 #
rnf :: NumeralData -> () #
hashWithSalt :: Int -> NumeralData -> Int #
hash :: NumeralData -> Int #
type ResolvedValue NumeralData :: * Source #
resolve :: Context -> Options -> NumeralData -> Maybe (ResolvedValue NumeralData, Bool) 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 #
getIntValue :: Double -> Maybe Int Source #
isInteger :: Double -> Bool Source #
isIntegerBetween :: Double -> Int -> Int -> Bool Source #