
On this page: http://www.haskell.org/tutorial/modules.html it refers to the process of hiding imported names from a module and gives the example: 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? Mike

Michael Vanier
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
participants (3)
-
Ketil Malde
-
Michael Vanier
-
Niels