[Haskell-cafe] Re: Import qualified, inverse of hiding
John Van Enk
vanenkj at gmail.com
Tue Sep 16 09:41:05 EDT 2008
I've dropped it on the discuss page:
Perhaps others have some input before I stick it on the page.
On Mon, Sep 15, 2008 at 4:36 PM, Paulo Tanimoto <tanimoto at arizona.edu>wrote:
> 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
> > 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 $  ++ [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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe