[Bug #127117] End of RULES pragma and indentation

noreply@sourceforge.net noreply@sourceforge.net
Fri, 29 Dec 2000 22:44:03 -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: Open
Resolution: None
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.


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