[Haskell-beginners] ghci parse error on input
Rick Murphy
rick at rickmurphy.org
Thu Mar 18 08:21:57 EDT 2010
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
More information about the Beginners
mailing list