| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Hunt.Index.Schema.Normalize.Int
Description
Normalization and validation for integer.
- normalizeToText :: Text -> Text
- denormalizeFromText :: Text -> Text
- normalizeToInt :: Text -> Int
- denormalizeFromInt :: Int -> Text
- isInt :: Text -> Bool
- integer :: Parser Int
Documentation
normalizeToText :: Text -> Text Source
Normalize an integer to a Text representation preserving ordering.
denormalizeFromText :: Text -> Text Source
Denormalize a value transformed with normalize.
normalizeToInt :: Text -> Int Source
Normalize an integer to an Int.
denormalizeFromInt :: Int -> Text Source
Denormalize an integer.
Validate if the text represents a valid integer.
Needs to be within Int range.