[Haskell] Re: comment vs varsym

Cale Gibbard cgibbard at gmail.com
Sat Dec 10 11:34:02 EST 2005


ghc = let h --: g = False
            :: Bool
          h = True
      in h --: False

main = print ghc

 -- Cale

On 09/12/05, Taral <taralx at gmail.com> wrote:
> On 12/8/05, Taral <taralx at gmail.com> wrote:
> > or b) comment, because the maximal munch rule says so (it matches the newline):
> >
> > comment -> dashes [any<symbol> {any}] newline
> > varsym -> (symbol {symbol | :})<reservedop | dashes>
>
> Aha. Maximal munch only applies to non-whitespace, so Hugs is right. Yay.
>
> --
> Taral <taralx at gmail.com>
> "Computer science is no more about computers than astronomy is about
> telescopes."
>     -- Edsger Dijkstra
> _______________________________________________
> Haskell mailing list
> Haskell at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
>


More information about the Haskell mailing list