-
Notifications
You must be signed in to change notification settings - Fork 15
Switch to haskell.nix #19
Comments
Another really neat thing might be to try get a static build going with https://github.com/nh2/static-haskell-nix, not sure how well that's compatible with |
The advantage of this is that there's no more long-ass stack2nix step to generate the Nix files. However the disadvantage is that it takes about twice as long (2 seconds for a single HIE version in comparison to 1 second with stack2nix) to instantiate the derivation. |
I tried to build hie ghc-8.6.5 using
I suspect there's a broken package upstream. |
What are the consequences of using a haskell.nix compiled HIE with a nixpkgs provisioned haskell development shell (and vice-versa)? Will it all just work as long as the GHC version numbers are the same? |
Seems to work fine |
This seems to work (in the hie directory) |
There is a concerning bug when using hie-bios (and hence hie itself) when compiled with haskell.nix: input-output-hk/haskell.nix#553 The short is: any TH which uses the types returned by |
See #52 (comment), where I explained why haskell.nix probably won't work for all-hies after all. I guess I should just close this. |
Hm, on the other hand, maybe the best solution is to just use haskell.nix and drop support for GHC versions it doesn't support. |
I've started looking further into haskell.nix, fixing some problems along the way to make it go smoothly, see haskell/haskell-ide-engine#1770 and input-output-hk/nix-tools#90. It also looks like haskell.nix now supports almost all versions that HIE supports (the only two versions it doesn't are 8.4.2 and 8.4.3, which I'd be totally fine with dropping support for) I'll continue working on this, seems very promising. |
So the haskell.nix branch is here, and GHC 8.6.5 and 8.8.3 build just fine (e.g. with |
I've tried to build HIE with support of ghc865 and ghc883 on haskell.nix branch
and got this error
Maybe I've done smth wrong? |
Ah, I've been using the iohk cachix to avoid having to build the bootstrapping stuff. Once I know that the haskell.nix derivations are working, I'll push the builds to the all-hies cachix. For now you can use
to avoid most of the building (though it's still a lot even with that) |
No changes. It stops on unpacking sources of stack-repos. |
I get the same error as @drchaos when trying this branch. |
Ahh that was my mistake after all (I didn't look too closely at the error), I pushed a fix now. (The iohk cachix is still recommended though) |
@infinisil It works now! Thanks. |
Now done with #64 |
input-output-hk/stack2nix#140 (comment)
The text was updated successfully, but these errors were encountered: