{-# LINE 100 "Foo.hs #-} vs. # 100 "Foo.hs"

Manuel M. T. Chakravarty [email protected]
Fri, 19 Jan 2001 10:45:55 GMT

[email protected] (Marcin 'Qrczak' Kowalczyk) wrote,

> Wed, 17 Jan 2001 02:39:53 -0800, Simon Marlow <[email protected]> pisze:
> > Actually the cpp-style pragma is only recognised if the '#' is in the
> > leftmost column and is followed by optional spaces and a digit.  It's
> > quite hard to write one of these in a legal Haskell program, but not
> > impossible.
> It's enough to change Manuel's program to use {;} instead of layout.
> But it won't happen in any real life program.

A dangerous statement.  For example, automatically generated
code often contains quite strange code.  If something breaks
the standard, it breaks the standard.