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

Error when explicitly importing value re-exported from module #1244

Closed
joneshf opened this issue Jul 9, 2015 · 4 comments
Closed

Error when explicitly importing value re-exported from module #1244

joneshf opened this issue Jul 9, 2015 · 4 comments
Assignees
Milestone

Comments

@joneshf
Copy link
Member

joneshf commented Jul 9, 2015

I wasn't sure if this was known already or not, but I think I ran into a bug:

module Foo where

  foo :: Int
  foo = 3

module Bar (module Foo) where

  import Foo

module Baz where

  import Bar (foo) -- this is the problem

  baz :: Int
  baz = foo
➜  rexport  psc src/Foo.purs 
Error:
Error in module Baz:
Error at /home/joneshf/programming/purs/rexport/src/Foo.purs line 12, column 3 - line 14, column 3:
  Unknown value Bar.foo
See https://github.com/purescript/purescript/wiki/Error-Code-UnknownValue for more information, or to contribute content related to this error.

If the problem line is changed to import Bar, then things compile fine.

@garyb
Copy link
Member

garyb commented Jul 9, 2015

I think that's a new one, thanks for the report 😞

@themoritz
Copy link

Same holds when hiding values.

@andyarvanitis
Copy link
Contributor

I can have a look at this -- I'm pretty sure I know the fix.

@svisser
Copy link

svisser commented Jul 26, 2015

I just got this error. Also note that the page at the indicated URL does not exist:

https://github.com/purescript/purescript/wiki/Error-Code-UnknownValue

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

No branches or pull requests

6 participants