diff options
author | Ian Lynagh <igloo@earth.li> | 2010-11-23 23:35:36 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-11-23 23:35:36 +0000 |
commit | 46809fa91667e952afe016e4cd704b21274241b4 (patch) | |
tree | 81e28ff1ad4024b4d34cc2ccf75186b515e409fd /compiler/parser | |
parent | b56d78783390e922c4bc8106f04729de01749e01 (diff) | |
download | haskell-46809fa91667e952afe016e4cd704b21274241b4.tar.gz |
Remove references to Haskell 98
They are no longer right, as we have Haskell' generating new Haskell
standards.
Diffstat (limited to 'compiler/parser')
-rw-r--r-- | compiler/parser/LexCore.hs | 3 | ||||
-rw-r--r-- | compiler/parser/Parser.y.pp | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/compiler/parser/LexCore.hs b/compiler/parser/LexCore.hs index 736450a21d..68b3419163 100644 --- a/compiler/parser/LexCore.hs +++ b/compiler/parser/LexCore.hs @@ -86,7 +86,8 @@ lexNum cont cs = | isDigit c -> cont (TKrational (fromInteger sgn * r)) rest' where ((r,rest'):_) = readFloat (digits ++ ('.':c:rest)) -- When reading a floating-point number, which is - -- a bit complicated, use the Haskell 98 library function + -- a bit complicated, use the standard library function + -- "readFloat" (digits,rest) -> cont (TKinteger (sgn * (read digits))) rest lexName :: (a -> String -> b) -> (String -> a) -> String -> b diff --git a/compiler/parser/Parser.y.pp b/compiler/parser/Parser.y.pp index 8d561bab9f..98599498ae 100644 --- a/compiler/parser/Parser.y.pp +++ b/compiler/parser/Parser.y.pp @@ -1356,8 +1356,8 @@ aexp2 :: { LHsExpr RdrName } | RATIONAL { sL (getLoc $1) (HsOverLit $! mkHsFractional (getRATIONAL $1) placeHolderType) } -- N.B.: sections get parsed by these next two productions. - -- This allows you to write, e.g., '(+ 3, 4 -)', which isn't correct Haskell98 - -- (you'd have to write '((+ 3), (4 -))') + -- This allows you to write, e.g., '(+ 3, 4 -)', which isn't + -- correct Haskell (you'd have to write '((+ 3), (4 -))') -- but the less cluttered version fell out of having texps. | '(' texp ')' { LL (HsPar $2) } | '(' tup_exprs ')' { LL (ExplicitTuple $2 Boxed) } @@ -1417,8 +1417,8 @@ texp :: { LHsExpr RdrName } -- Note [Parsing sections] -- ~~~~~~~~~~~~~~~~~~~~~~~ -- We include left and right sections here, which isn't - -- technically right according to Haskell 98. For example - -- (3 +, True) isn't legal + -- technically right according to the Haskell standard. + -- For example (3 +, True) isn't legal. -- However, we want to parse bang patterns like -- (!x, !y) -- and it's convenient to do so here as a section |