-
Notifications
You must be signed in to change notification settings - Fork 116
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
Setup.hs error with defaultUserHooks #87
Comments
Below is an excerpt of dump with max verbosity turned on. Over 9000 lines long otherwise.
...
...
These are all the times |
So far in my explorations of nix and Haskell, I have encountered two common issues with building Haskell projects. The first is the packages not being in the right range, which seems to be resolved by the strategy of using cabal2nix to make a nix file for the specific version and adding it to the release.nix file as shown in the tutorial. The second issue I keep running into even with other tutorials is this Setup.hs issue. It's consistently these two. |
@xave: The |
@Gabriel439 Thank you. I will look into this and get back. |
I'm running through this tutorial and have received a Setup.hs variable not in scope error.
My setup:
I am on "project1" tutorial. First of all, as expected a few more package dependencies are in need of updates, but those are easily fixed using the techniques laid out in project1. In particular, the packages that need to be updated as of today are
transformers-compat
(updated to v.0.3) andprocess
(updated to 1.0.0.0). I mention these for completeness.After getting those two to resolve, the following error shows up:
with this snippet bolded
Setup.hs:6:29: error:
Variable not in scope: defaultUserHooks :: UserHooks
|
6 | main = defaultMainWithHooks defaultUserHooks
|_____________________________________^^^^^^^^^^^^^^^^
Called with this command:
nix-build -v --attr project1 release3.nix
Any ideas?
The text was updated successfully, but these errors were encountered: