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

Indeed. Or do you want to tell me that you are going to break one of my favourite programs?
[ code deleted ] # 111 "Foo.hs"
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. Simon

Wed, 17 Jan 2001 02:39:53 -0800, Simon Marlow
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. -- __("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/ \__/ ^^ SYGNATURA ZASTÊPCZA QRCZAK

qrczak@knm.org.pl (Marcin 'Qrczak' Kowalczyk) wrote,
Wed, 17 Jan 2001 02:39:53 -0800, Simon Marlow
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. Cheers, Manuel
participants (3)
-
Manuel M. T. Chakravarty
-
qrczak@knm.org.pl
-
Simon Marlow