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

Module imports in mdb query are lazy?.. #27

Open
ulidtko opened this issue Oct 2, 2015 · 0 comments
Open

Module imports in mdb query are lazy?.. #27

ulidtko opened this issue Oct 2, 2015 · 0 comments

Comments

@ulidtko
Copy link

ulidtko commented Oct 2, 2015

In the mdb query interface (which I see as a poor man's REPL for Mercury), import of a non-existent module incorrectly succeeds.

The "cannot find..." error does appear later (when the user issues a goal query, which I guess triggers compilation) — but that is too late.

mdb> query
?- [asdfqwer].
:- import_module asdfqwer.
?- 1 = 1.
mercury_compile: cannot find `asdfqwer.int' in directories .,
  /usr/local/mercury-14.01.1/lib/mercury/ints
<stdin>:026: Inferred :- pred query.
<stdin>:026: Inferred :- mode query is det.
Compilation error(s) occurred.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant