JustParse-2.1: A simple and comprehensive Haskell parsing library

Portabilityportable
Stabilityexperimental
Maintainergrantslatton@gmail.com
Safe HaskellSafe

Data.JustParse.Numeric

Description

Parsers for dealing with signed and unsigned Ints and Floats.

Synopsis

Documentation

decDigit :: Stream s Char => Parser s IntSource

Parse a single decimal digit into an Int.

hexDigit :: Stream s Char => Parser s IntSource

Parse a single hexadecimal digit into an Int.

unsignedDecInt :: Stream s Char => Parser s IntSource

Parse a series of decimal digits into an Int.

unsignedDecInt_ :: Stream s Char => Parser s IntSource

Branching version of unsignedDecInt.

unsignedHexInt :: Stream s Char => Parser s IntSource

Parse a series of hexadecimal digits into an Int.

unsignedHexInt_ :: Stream s Char => Parser s IntSource

Branching version of unsignedHexInt.

decInt :: Stream s Char => Parser s IntSource

Parse a series of decimal digits into an Int with an optional sign.

decInt_ :: Stream s Char => Parser s IntSource

Branching version of decInt.

hexInt :: Stream s Char => Parser s IntSource

Parse a series of hexadecimal digits into an Int with an optional sign.

hexInt_ :: Stream s Char => Parser s IntSource

Branching versino of hexInt.

decFloat :: Stream s Char => Parser s FloatSource

Parse a float. If a decimal point is present, it must have at least one digit before and after the decimal point.

decFloat_ :: Stream s Char => Parser s FloatSource

Branching version of decFloat.