Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing the same module with and without qualification causes issues #817

Closed
garyb opened this issue Jan 18, 2015 · 5 comments · Fixed by #1389
Closed

Importing the same module with and without qualification causes issues #817

garyb opened this issue Jan 18, 2015 · 5 comments · Fixed by #1389
Assignees
Milestone

Comments

@garyb
Copy link
Member

garyb commented Jan 18, 2015

Depending on the order of the imports, the imported values are only available with or without qualification.

@garyb garyb added this to the 0.7.0 milestone Jan 18, 2015
@paf31
Copy link
Contributor

paf31 commented Feb 3, 2015

Is there an example of this?

@michaelficarra
Copy link
Contributor

module Main where

import Debug.Trace
import qualified Debug.Trace as D

main = trace "Hello, World!"

@paf31
Copy link
Contributor

paf31 commented Feb 3, 2015

Thanks!

@michaelficarra
Copy link
Contributor

Note that this example works if you reverse the order of the imports.

@alexchandel
Copy link

It seems the first import shadows all others:

> import Signal.Channel (send)
> import Signal.Channel (send, channel)
> :t channel
Error in module $PSCI:
Error at  line 1, column 1 - line 1, column 2:
  Unknown value channel
See https://github.com/purescript/purescript/wiki/Error-Code-UnknownValue for more information, or to contribute content related to this error.

>

Intuitively I would expect the union of all imports to be available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants