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
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
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
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.
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
__
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
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
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