[Nix-dev] Could not find module `Yi' (haskell editor)

Cody Goodman codygman.consulting at gmail.com
Fri Jul 11 07:35:24 CEST 2014


Thanks, I'll be sure to try this out as soon as I get the time and let
you know if it works.

- Cody

On Thu, Jul 10, 2014 at 8:30 AM, Patrick Wheeler
<patrick.john.wheeler at gmail.com> wrote:
> The default install mechanism:
>
> nix-env -iA nixos.pkgs.haskellPackages.yi
>
> does not work well with yi and similar packages like mueval, hint(yi depends
> on this), ghc api, and others. Instead use the `ghcWithPackages` method
> found on the wiki page:
> https://nixos.org/wiki/Haskell#Local_use_via_Nixpkgs_config
>
> Here is added to myHaskellPackages
>
>     yiEnv = haskellPackages.ghcWithPackages (self : [
>       self.yi
>       # add more packages here
>     ]);
>
> How to set up and maintain custum packages:
>
> https://nixos.org/wiki/Haskell#Maintaining_your_own_set_of_additional_Haskell_packages
>
> I do not know if it is out of date or not if it does not work let me know
> and I will pull what I have in config currently.
>
> Patrick
>
>
> On Thu, Jul 10, 2014 at 9:36 AM, Cody Goodman
> <codygman.consulting at gmail.com> wrote:
>>
>> I tried installing yi:
>>
>> nix-env -iA nixos.pkgs.haskellPackages.yi
>>
>> Then I made a config file at ~/.config/yi/yi.hs and opened it up. I
>> got an error that:
>>
>> /home/cody/.config/yi/yi.hs:1:8:
>>     Could not find module `Yi'
>>     Use -v to see a list of the files searched for.
>>
>> So I made a haskell source file that imported the Yi package and used
>> -v to compile it. I found these errors:
>>
>>
>>
>> [cody at cody-nixos:~]$ cat helloyi.hs
>> import Yi
>>
>> main = undefined
>>
>> [cody at cody-nixos:~]$ ghc -v helloyi.hs  2>  err
>>
>> [cody at cody-nixos:~]$ grep yi err
>> Using binary package database:
>>
>> /nix/store/sd2bxa3vmzxwqrlndk0lsci8yiisawc1-ghc-7.6.3/lib/ghc-7.6.3/package.conf.d/package.cache
>> Using package config file:
>>
>> /home/cody/.nix-profile/bin/../lib/ghc-7.6.3/package.conf.d/yi-0.8.1.installedconf
>> Using package config file:
>>
>> /home/cody/.nix-profile/bin/../lib/ghc-7.6.3/package.conf.d/yi-contrib-0.8.1.installedconf
>> Using package config file:
>>
>> /home/cody/.nix-profile/bin/../lib/ghc-7.6.3/package.conf.d/yi-0.8.1.installedconf
>> Using package config file:
>>
>> /home/cody/.nix-profile/bin/../lib/ghc-7.6.3/package.conf.d/yi-contrib-0.8.1.installedconf
>> Using package config file:
>>
>> /home/cody/.nix-profile/sbin/../lib/ghc-7.6.3/package.conf.d/yi-0.8.1.installedconf
>> Using package config file:
>>
>> /home/cody/.nix-profile/sbin/../lib/ghc-7.6.3/package.conf.d/yi-contrib-0.8.1.installedconf
>> package yi-0.8.1-7bac1e292b6d7d88c0768ab1c7fac0ec is unusable due to
>> missing or recursive dependencies:
>> package yi-contrib-0.8.1-db6318d81d91fe3c2fe9db6ac99ec68c is unusable
>> due to missing or recursive dependencies:
>>   yi-0.8.1-7bac1e292b6d7d88c0768ab1c7fac0ec
>> Chasing modules from: *helloyi.hs
>> helloyi.hs:1:8:
>>
>> Anyone experienced this problem before?
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
>
>
> --
> Patrick Wheeler
> Patrick.John.Wheeler at gmail.com
> Patrick.J.Wheeler at rice.edu
> Patrick.Wheeler at colorado.edu


More information about the nix-dev mailing list