[Nix-dev] package dependency problem: ghc-mod: cannot satisfy -package-id mtl-2.1.3.1

Carlo Nucera meditans at gmail.com
Mon Dec 15 12:35:09 CET 2014


Hi Paul, Peter,

> I'm not sure why ghc-mod needs these environment variables (shouldn't it be
> finding these things on the path?), but anyway, it all works now!

I'm curious about it too. And those environment variables should maybe
be added to the wiki in the ghc-pkg section, as a lot of haskellers
use ghc-mod in their setup.

> Thank you!
No problem, glad to see it worked.

Best regards
Carlo


> On Sun, Dec 14, 2014 at 8:33 PM, Carlo Nucera <meditans at gmail.com> wrote:
>>
>> Hi Peter,
>>
>> I think that 'hsEnv approach' means essentially ghcWithPackages, as
>> detailed in this wiki page: https://nixos.org/wiki/Haskell (search for
>> 'hsEnv', it's in 'Local use via Nixpkgs config' section. I don't know
>> if that information is outdated, but it created problems also for me
>> (half a year ago, or so).
>>
>> Paul, I think you could benefit from this mail from Peter outlining
>> how to setup a working haskell installation:
>> http://article.gmane.org/gmane.linux.distributions.nixos/15045
>>
>> Or, if you prefer another approach, I remember this blog post to work
>> (caution, it's not using ghcWithPackages, which is the suggested
>> installation):
>> http://www.cse.chalmers.se/~bernardy/nix.html
>>
>> Best regards
>> Carlo
>>
>> 2014-12-14 19:34 GMT+01:00 Peter Simons <simons at cryp.to>:
>> > Hi Paul,
>> >
>> >  > I have a problem keeping ghc-mod happy. After trying a number of
>> > other
>> >  > approaches I have opted to install all haskell packages to my profile
>> >  > via the 'hsEnv' approach.
>> >
>> > what exactly is an hsEnv approach?
>> >
>> > Best regards,
>> > Peter
>> >
>> > _______________________________________________
>> > nix-dev mailing list
>> > nix-dev at lists.science.uu.nl
>> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>


More information about the nix-dev mailing list