Re: [Nix-dev] Help with ghc errors after nix-channel --update

2014-12-18 Thread Mateusz Kowalczyk
On 12/06/2014 05:29 PM, Carlo Nucera wrote: > Hi Peter > > I added this snippet to my ~/.nix-packages/config.nix > > ghcTestEnv = self.haskellPackages_ghc783.ghcWithPackages (p: with p; [ > mtl > ]); > > and ran: > > $ nix-env -p /tmp/haskell -iA ghcTestEnv > $ /tmp/haskell/bin/ghci

Re: [Nix-dev] Help with ghc errors after nix-channel --update

2014-12-15 Thread Carlo Nucera
Hi Peter, for completeness, could you post a version in which this approach is used in conjunction with ghcWithPackages? I mean a working ~/.nixpkgs/config.nix, so that I can point people to it? Thanks Carlo 2014-12-06 23:39 GMT+01:00 Peter Simons : > Hi Carlo, > > > I wrote the nix expression

Re: [Nix-dev] Help with ghc errors after nix-channel --update

2014-12-08 Thread Carlo Nucera
Yes, thank you, this was exactly what I was in search of! Now my configuration works :) Bests Carlo Nucera 2014-12-06 23:39 GMT+01:00 Peter Simons : > Hi Carlo, > > > I wrote the nix expression for abcnotation, and it's not yet present > > in the channel. What would be the right way to add an e

Re: [Nix-dev] Help with ghc errors after nix-channel --update

2014-12-07 Thread Peter Simons
Hi Benno, > I just assumed that since I had two versions of hashable with > different cabal hashes installed, that one of them was a GHC core > package. oh, that doesn't sound good. There should be only one version of hashable active per compiler version, really. > 1. Install a package depe

Re: [Nix-dev] Help with ghc errors after nix-channel --update

2014-12-06 Thread Peter Simons
Hi Carlo, > I wrote the nix expression for abcnotation, and it's not yet present > in the channel. What would be the right way to add an expression made > by me in this setup? run the commands $ cabal2nix cabal://prettify >~/.nixpkgs/prettify.nix $ cabal2nix cabal://abcnotation >~/.nixpkg

Re: [Nix-dev] Help with ghc errors after nix-channel --update

2014-12-06 Thread Benno Fünfstück
Or maybe I just have another version of hashable installed system wide via configuration.nix Benno Fünfstück schrieb am Sa., 6. Dez. 2014 18:57: > Hi Peter, > > Oh, I just assumed that since I had two versions of hashable with > different cabal hashes installed, that one of them was a GHC core p

Re: [Nix-dev] Help with ghc errors after nix-channel --update

2014-12-06 Thread Benno Fünfstück
Hi Peter, Oh, I just assumed that since I had two versions of hashable with different cabal hashes installed, that one of them was a GHC core package. But now that I think of it you're probably correct, and this just happened because I did something similar to the following: 1. Install a package

Re: [Nix-dev] Help with ghc errors after nix-channel --update

2014-12-06 Thread Carlo Nucera
Hi Peter I added this snippet to my ~/.nix-packages/config.nix ghcTestEnv = self.haskellPackages_ghc783.ghcWithPackages (p: with p; [ mtl ]); and ran: $ nix-env -p /tmp/haskell -iA ghcTestEnv $ /tmp/haskell/bin/ghci Prelude> import Control.Monad.State.Lazy These commands worked w

Re: [Nix-dev] Help with ghc errors after nix-channel --update

2014-12-06 Thread Peter Simons
Hi Benno, > I think the problem occurs because in recent nixpkgs hashable was > upgraded, but hashable is a GHC core package and thus cannot be > replaced. hashable is a core library? In which versions of GHC is that so? Best regards, Peter ___ nix

Re: [Nix-dev] Help with ghc errors after nix-channel --update

2014-12-06 Thread Peter Simons
Hi Carlo, > ghc-pkg check is full of errors I don't think that "ghc-pkg check" ever succeeded in any ghc-wrapper based installation. > packages I installed no longer load in ghci There is no obvious explanation for the errors you've described. As random suggestion how you might obtain some ad

Re: [Nix-dev] Help with ghc errors after nix-channel --update

2014-12-06 Thread Carlo Nucera
Ok, I saw pkgs/top-level/haskell-packages.nix and I understand now what you're talking about. Is there a simple way to patch that value throug my ~/.nix-packages/config.nix file? Carlo Nucera 2014-12-06 17:36 GMT+01:00 Benno Fünfstück : > Hello, > > I think the problem occurs because in recent ni

Re: [Nix-dev] Help with ghc errors after nix-channel --update

2014-12-06 Thread Benno Fünfstück
Hello, I think the problem occurs because in recent nixpkgs hashable was upgraded, but hashable is a GHC core package and thus cannot be replaced. I guess that previously the version provided by GHC was newer than the nixpkgs one, so it shadowed the nixpkgs version. Now, with the upgraded version,

[Nix-dev] Help with ghc errors after nix-channel --update

2014-12-06 Thread Carlo Nucera
Hi all. I managed to create a nice setup for haskell development. However, I did: $ sudo nix-channel --update $ sudo nixos-channel rebuild After updating, my haskell installation is broken, ghc-pkg check is full of errors, and the packages I installed no longer load in ghci. I could rollback but