Commits

Bryan O'Sullivan committed 7d055a1

Fix documentation for rational.

This fixes bug #11.

Comments (0)

Files changed (2)

Data/Attoparsec/ByteString/Char8.hs

 -- >rational "3.1"   == Done 3.1 ""
 -- >rational "3e4"   == Done 30000.0 ""
 -- >rational "3.1e4" == Done 31000.0, ""
-
+--
 -- Examples with behaviour identical to 'read':
 --
 -- >rational ".3"    == Fail "input does not start with a digit"

Data/Attoparsec/Text.hs

 -- >rational "3.1"   == Done 3.1 ""
 -- >rational "3e4"   == Done 30000.0 ""
 -- >rational "3.1e4" == Done 31000.0, ""
-
+--
 -- Examples with behaviour identical to 'read':
 --
 -- >rational ".3"    == Fail "input does not start with a digit"