[Haskell-cafe] mistake in Gentle Introduction

Ketil Malde ketil+haskell at ii.uib.no
Thu Sep 22 05:03:39 EDT 2005


Michael Vanier <mvanier at cs.caltech.edu> writes:

>   import Prelude hiding length

> whereas the correct syntax is

>   import Prelude hiding (length)

> I spent nearly an hour beating my head against this.  Can someone fix this
> in the documentation?

Or, alternatively, fix the Haskell syntax?  It would be more
consistent with qualified type declarations [e.g. (Eq a, Ord a ) => a
-> a  vs.  Eq a => a -> a ] or deriving clauses.

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants



More information about the Haskell-Cafe mailing list