JustParse-2.0: 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

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.

decInt :: Stream s Char => Parser s IntSource

Reads many decimal digits and returns them as an Int.

decInt_ :: Stream s Char => Parser s IntSource

Branching version of decInt.

hexInt :: Stream s Char => Parser s IntSource

Reads many hexidecimal digits and returns them as an Int.

hexInt_ :: Stream s Char => Parser s IntSource

Branching versino of hexInt.