Skip to content
Snippets Groups Projects
Commit 121ce776 authored by sof's avatar sof
Browse files

[project @ 1997-07-27 09:14:11 by sof]

Use readRational__ rather than readRational (it copes with leading -)
parent 6d114a5b
No related merge requests found
......@@ -512,8 +512,11 @@ wlkLiteral ulit
as_integer s = readInteger (_UNPK_ s)
#if __GLASGOW_HASKELL__ == 201
as_rational s = GHCbase.readRational__ (_UNPK_ s) -- non-std
#elif __GLASGOW_HASKELL__ >= 202
as_rational s = case readRational (_UNPK_ s) of { [(a,_)] -> a } -- ToDo, use non-std readRational__
#elif __GLASGOW_HASKELL__ == 202
as_rational s = case readRational (_UNPK_ s) of { [(a,_)] -> a }
#elif __GLASGOW_HASKELL__ >= 203
as_rational s = readRational__ (_UNPK_ s) -- use non-std readRational__
-- to handle rationals with leading '-'
#else
as_rational s = _readRational (_UNPK_ s) -- non-std
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment