[Haskell-cafe] Re: Import qualified, inverse of hiding
Paulo Tanimoto
tanimoto at arizona.edu
Mon Sep 15 16:36:22 EDT 2008
On Mon, Sep 15, 2008 at 3:04 PM, John Van Enk <vanenkj at gmail.com> wrote:
> Would it make sense to add multiple imports to that wiki page? I'm not sure
> if this is supported outside of GHC, but I've found it useful.
> 1 module Main where
> 2
> 3 import qualified Prelude as P
> 4 import Prelude ((++),show,($))
> 5
> 6 main = P.putStrLn (show $ P.length $ show $ [1] ++ [2,3])
>
I don't know if that's exclusive to GHC, but I think it would be nice
to have your example on the Wiki -- perhaps at the bottom. We could
put it under discussion, if we're not sure.
Thanks,
Paulo
More information about the Haskell-Cafe
mailing list