
18 Mar
2010
18 Mar
'10
12:21 p.m.
Hello All: Using GHCi, I am working from an existing example which surprisingly contains a parse error in an export statement. I have reproduced the parse error as follows:
module Export ( (^) , (#) ) where import Prelude hiding ((^))
GHCi reports: parse error on input (# I read 5.2 Export Lists in the Haskell Report, but the syntax above does not appear to contradict the Haskell Report. I have eliminated the following solutions: 1. Add (#) to the hiding list. 2. Swap the (#) and (^). 3. Load as non-literate file. Would anyone be able to provide advice on how to avoid this parse error? -- Rick blog: http://phaneron.rickmurphy.org