require
require copied to clipboard
Error when adding to project
Hi, this is a really great idea. I'd like to use it, but when I add it per the instructions I get the following error:
ghc: could not execute: requirepp
<no location info>: error:
Could not load module ‘AccountStore.Account’
It is a member of the hidden package ‘server-0.1.0.0’.
You can run ‘:set -package server’ to expose it.
(Note: this unloads all the modules in the current scope.)
This is on a project generated with stack new, using a package.yaml file instead of a cabal file. I haven't added any require statements yet.
Hi! Thanks for reaching out 😁
This is due to the fact that require is not on the PATH. Try installing it with stack install require and see if it works. It is very weird, as stack should do it when it is building the project.
Please tell how it goes! 😄
@seanhess how did this go? Did it work?