Fix doctest error introduced by 49c8c093ac.
This commit is contained in:
parent
7040289d54
commit
5bc5bb5533
@ -738,10 +738,10 @@ fromRawNumber suggestedStyle negated raw = (quantity, precision, mdecimalpoint,
|
|||||||
--
|
--
|
||||||
-- - the second and last separator char, and following digit group, if any.
|
-- - the second and last separator char, and following digit group, if any.
|
||||||
--
|
--
|
||||||
-- >>> 1,234,567.89
|
-- >>> parseTest rawnumberp "1,234,567.89"
|
||||||
-- ( Just ',', ["1","234","567"], Just ('.', "89") )
|
-- (Just ',',["1","234","567"],Just ('.',"89"))
|
||||||
-- >>> 1 000
|
-- >>> parseTest rawnumberp "1 000"
|
||||||
-- ( Just ' ', ["1","000"], Nothing )
|
-- (Just ' ',["1","000"],Nothing)
|
||||||
rawnumberp :: TextParser m ( Maybe Char , [String] , Maybe (Char, String) )
|
rawnumberp :: TextParser m ( Maybe Char , [String] , Maybe (Char, String) )
|
||||||
rawnumberp = do
|
rawnumberp = do
|
||||||
let sepChars = ['.', ','] -- all allowed punctuation characters
|
let sepChars = ['.', ','] -- all allowed punctuation characters
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user