[Haskell-cafe] Re: Overriding a Prelude function?

Heinrich Apfelmus apfelmus at quantentunnel.de
Thu Apr 23 05:17:28 EDT 2009


michael rice wrote:
> Here's what I get:
> 
> [michael at localhost ~]$ ghci
> GHCi, version 6.10.1: http://www.haskell.org/ghc/  :? for help
> Loading package ghc-prim ... linking ... done.
> Loading package integer ... linking ... done.
> Loading package base ... linking ... done.
> Prelude> import Prelude hiding ((>>))
> 
> <interactive>:1:0: parse error on input `import'
> Prelude> 

Not on the command line, you have to put

   import Prelude hiding ((>>), (>>=), return)

into your  rand.hs  file.


Regards,
apfelmus

--
http://apfelmus.nfshost.com



More information about the Haskell-Cafe mailing list