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

Set4a.hs gives import errors when :loading into GHCI #14

Closed
Sose opened this issue Nov 20, 2020 · 1 comment
Closed

Set4a.hs gives import errors when :loading into GHCI #14

Sose opened this issue Nov 20, 2020 · 1 comment

Comments

@Sose
Copy link

Sose commented Nov 20, 2020

Set4a.hs imports Data.Map and Data.Array which need packages containers and array to be installed. I don't know if the project knows to install them but for some reason they're "hidden" for stack ghci or what exactly is happening but I think there should be atleast a comment in the Set4a.hs file about the potential errors and how to fix them...

Fixing it was easy enough by reading the error messages but my editor integration is still broken for that file and I don't know how I would tell my editor's plugin or Haskell Language Server to "see" those "hidden packages".

Included is what happens on my system after cloning the repository and trying to :load the Set4a.hs file into GHCI.

Sorry if it's confusing, new to Haskell and the whole ecosystem.

error.txt

@opqdonut
Copy link
Collaborator

Hey, thanks for the report! The packages are indeed missing from tests.cabal. For some reason stack ghci Set4a.hs works even though it shouldn't but stack ghci and :load Set4a.hs fails.

I'll have a fix in a second.

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

2 participants