[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:
http://www.haskell.org/haskellwiki/Talk:Import
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
> 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
>
--
/jve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080916/52d8e218/attachment-0001.htm
More information about the Haskell-Cafe
mailing list