On 18 March 2010 13:26, Chaddaï Fouché <chaddai.fouche at gmail.com> wrote:
>> That's probably due to you using GHCi in a version where the
> GHC-specific extension concerning # is active by default (with this
> extension (# 2, 3 #) is an unboxed strict pair). While it's probably
> possible to compile this code by making sure that the extension isn't
> active (for instance, using ghc instead of ghci), it is probably a
> better idea to avoid # as an operator name.
True - if you use -fglasgow-exts rather than adding extensions
selectively it bring in the conflicting extension (probably
-XMagicHash)
If you surround the export and definition of the # function with
whitespace it should still work.
> module Export
> (
> (^)
> , ( # )
> )
> where
> import Prelude hiding ((^))