hunt-searchengine-0.3.0.1: A search and indexing engine.

Safe HaskellNone
LanguageHaskell98

Hunt.Index.Schema.Normalize.Int

Description

Normalization and validation for integer.

Synopsis

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.

isInt :: Text -> Bool Source

Validate if the text represents a valid integer. Needs to be within Int range.

integer :: Parser Int Source

Parse a simple integer representation.