Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use settings.txt? #412

Open
Minnozz opened this issue Aug 17, 2023 · 2 comments
Open

How to use settings.txt? #412

Minnozz opened this issue Aug 17, 2023 · 2 comments

Comments

@Minnozz
Copy link

Minnozz commented Aug 17, 2023

I'm running a local instance of Hoogle (via Nix) with my employer's packages and their dependencies. I've always noticed that hoogle.haskell.org has a more logical order for packages when there are multiple hits (ie preferring base). After some searching, I found that this is probably because of a difference in ReorderModule rules. I also see there exists a misc/settings.txt, but I don't know how to supply this file myself or why the default rules result in a different order compared to hoogle.haskell.org.

@ndmitchell
Copy link
Owner

The misc/settings.txt file is read at

let backup = $(runIO (readFileUTF8 "misc/settings.txt") >>= lift)
- it's a Cabal data file. So simply doing cabal install should cause it to see the settings.txt file that ships with Hoogle. Are you running Hoogle from a cabal package or from the repo?

@Minnozz
Copy link
Author

Minnozz commented Aug 17, 2023

We are using this Nix derivation to generate a Hoogle database for our own packages and their dependencies. It receives the hoogle package that is packaged in nixpkgs as input, which I believe is built using cabal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants