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