[Bug #127117] End of RULES pragma and indentation

noreply@sourceforge.net noreply@sourceforge.net
Tue, 02 Jan 2001 06:19:13 -0800


Bug #127117, was updated on 2000-Dec-29 22:44
Here is a current snapshot of the bug.

Project: The Glasgow Haskell Compiler
Category: Compiler (Parser)
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 5
Submitted by: chak
Assigned to : nobody
Summary: End of RULES pragma and indentation

Details: The following bug occurs in GHC 4.11, but not in GHC 4.08.1.

Given the module

<code>
module Bug where

{-# RULES

  "foo" foo 1 = 1

#-}

foo 1 = 1
</code>

(where it is essential that #-} starts in column 1), GHC 
4.11 complains

  test.hs:1: parse error on input `foo'

although the given module should be legal - moreover, the
given line number is wrong.


Follow-Ups:

Date: 2001-Jan-02 06:19
By: simonmar

Comment:
Fixed in revision 1.40 of ghc/compiler/parser/Lex.lhs.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=127117&group_id=8032