Re: [Nix-dev] Haskell: indexing all packages on Hackage with Hoogle

2015-02-08 Thread Nikita Karetnikov
> I often don't use hoogle, hack-nix can autotag sources you use for
> projects - that is always accurate.

The usecase I have in mind is when I want to find out whether a certain
thing exists on Hackage already or not.  E.g., I need the Month data
type; surely someone has already defined one, so I only need to find the
right package.


signature.asc
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Haskell: indexing all packages on Hackage with Hoogle

2015-02-08 Thread Marc Weber
I often don't use hoogle, hack-nix can autotag sources you use for
projects - that is always accurate.

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Haskell: indexing all packages on Hackage with Hoogle

2015-02-08 Thread Nikita Karetnikov
> Just for what it's worth, I have in the past indexed everything, but it causes
> far too much noise in the search output.  This is why the hoogle-local
> expression takes the approach of asking for a list of 'packages' to indicate
> what should be indexed.

Well, it's certainly better than nothing.  Is the setup process
documented somewhere?


signature.asc
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Haskell: indexing all packages on Hackage with Hoogle

2015-02-08 Thread John Wiegley
> Nikita Karetnikov  writes:

> Has anyone tried that?  Most of the guides suggest you to run the following
> command, which should download the necessary databases, but it fails for me.

Just for what it's worth, I have in the past indexed everything, but it causes
far too much noise in the search output.  This is why the hoogle-local
expression takes the approach of asking for a list of 'packages' to indicate
what should be indexed.

John
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Haskell: indexing all packages on Hackage with Hoogle

2015-02-08 Thread Nikita Karetnikov
Has anyone tried that?  Most of the guides suggest you to run the
following command, which should download the necessary databases, but it
fails for me.

$ hoogle data all default
hoogle: 
/nix/store/2qk57kvi2nfayicwg57wa20y0kvxcy0x-haskell-hoogle-ghc7.8.4-4.2.36-shared/share/x86_64-linux-ghc-7.8.4/hoogle-4.2.36/databases:
 changeWorkingDirectory: does not exist (No such file or directory)

Also, I couldn't determine which packages will be indexed by briefly
looking at the source.  Does anyone know?


signature.asc
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev