Re: [Haskell-cafe] import qualified?

2009-05-23 Thread Daniel Fischer
Am Samstag 23 Mai 2009 08:08:42 schrieb Vasili I. Galchin: > Hi Paulo, > >     You are teasing me ;^) So what is the "semantics" of "import qualified > Blah"? > > Regards, > > Vasili The qualified names (Blah.foo, Blah.baz) are in scope, but not the unqualified names foo, baz. If you import qu

Re: [Haskell-cafe] import qualified?

2009-05-22 Thread Vasili I. Galchin
Hi Paulo, You are teasing me ;^) So what is the "semantics" of "import qualified Blah"? Regards, Vasili On Sat, May 23, 2009 at 12:47 AM, Paulo Tanimoto wrote: > On Sat, May 23, 2009 at 12:39 AM, Vasili I. Galchin > wrote: > > Hello, > > > > I am working with some somewhat legacy cod

Re: [Haskell-cafe] import qualified?

2009-05-22 Thread Paulo Tanimoto
On Sat, May 23, 2009 at 12:39 AM, Vasili I. Galchin wrote: > Hello, > > I am working with some somewhat legacy code. I understand what "import > qualified Blah as B" means but what does "import qualified Blah" mean? Is > this a deprecated feature? I saw with user defined module as well as wit

Re: [Haskell-cafe] import qualified?

2009-05-22 Thread wren ng thornton
Vasili I. Galchin wrote: Hello, I am working with some somewhat legacy code. I understand what "import qualified Blah as B" means but what does "import qualified Blah" mean? Is this a deprecated feature? I saw with user defined module as well as with "import qualified System" for example.

[Haskell-cafe] import qualified?

2009-05-22 Thread Vasili I. Galchin
Hello, I am working with some somewhat legacy code. I understand what "import qualified Blah as B" means but what does "import qualified Blah" mean? Is this a deprecated feature? I saw with user defined module as well as with "import qualified System" for example. REgards, Vasili __

[Haskell-cafe] Import qualified, inverse of hiding

2008-09-15 Thread Mauricio
Hi, 'import' allows one to say 'hiding' to a list of names. Is it possible to do the opposite, i.e., list the names I want to import? Something like "import Module showing x"? Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org htt

Re: [Haskell-cafe] Import qualified, inverse of hiding

2008-09-15 Thread Ryan Ingram
Yes, just leave out the keyword "hiding". > import Data.Map (Map, insert, lookup) This is the "safest" way to do imports as you're guaranteed that changes to the export list that do not affect those qualifiers won't cause code to stop compiling or become ambiguous. -- ryan On Mon, Sep 15, 200

Re: [Haskell-cafe] Import qualified, inverse of hiding

2008-09-15 Thread Paulo Tanimoto
You mean like this? import Data.List (foldl', nub) Or am I misunderstanding your question? Paulo On Mon, Sep 15, 2008 at 2:26 PM, Mauricio <[EMAIL PROTECTED]> wrote: > Hi, > > 'import' allows one to say 'hiding' to > a list of names. Is it possible to do the > opposite, i.e., list the names I w