[Haskell-cafe] Re: '#' in literate haskell
John MacFarlane
jgm at berkeley.edu
Mon Dec 1 17:32:07 EST 2008
+++ Bertram Felgenhauer [Nov 30 08 09:57 ]:
> John MacFarlane wrote:
> > Can anyone explain why ghc does not treat the following
> > as a valid literate haskell program?
> >
> > --------- test.lhs ----
> > # This is a test
> >
> > > foo = reverse . words
> >
> > ------------------------
>
> I believe this is an artifact of ghc trying to parse cpp style line
> number information:
>
> >>> foo.lhs >>>
> # 123 "foo.foo"
>
> > t = <>
> <<<
>
> will print this error:
> foo.foo:124:6: parse error on input `<>'
Thanks! Mystery solved.
John
More information about the Haskell-Cafe
mailing list