[Haskell-cafe] Comment Syntax
max.rabkin at gmail.com
Fri Jun 3 10:56:10 CEST 2011
On Fri, Jun 3, 2011 at 10:32, Guy <guytsalmaves-h at yahoo.com> wrote:
> -- followed by a symbol does not start a comment, thus for example, haddock
> declarations must begin with -- |, and not --|.
> What might --| mean, if not a comment? It doesn't seem possible to define it
> as an operator.
GHCi, at least, allows it.
Prelude> let (--|) = (+)
Prelude> 1 --| 2
More information about the Haskell-Cafe