Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Fix Hackage database path for OSX and extract getHackagePath. #3

Closed
wants to merge 1 commit into from

Conversation

aloiscochard
Copy link

Hackage database is now unified accross OS.

This fix: #2

And I would love being able to reuse the getHackagePath function in my codex library ;-)

Hackage database is now unified accross OS.
peti added a commit that referenced this pull request Jul 31, 2014
…tar" file into a separate function, hackagePath, and export it

Suggested in <#3>.
@peti
Copy link
Member

peti commented Jul 31, 2014

I've merged your code and uploaded a new release to Hackage (version 1.8).

I've add a function called hackagePath that returns the path to the Cabal home directory, as you suggested, but my function points to the 00-index.tar file rather than to the directory itself. Is that function still useful to you?

@peti peti closed this Jul 31, 2014
@aloiscochard
Copy link
Author

Great @peti!

Yeah I can easily remove that last part of the path no problem :-)

Just keep in mind that others depend on that in case you do any change in future (basically please follow PVP... which you probably do already, just a friendly reminder).

Thanks again for your support!

sternenseemann pushed a commit to NixOS/cabal2nix that referenced this pull request Jul 21, 2022
…tar" file into a separate function, hackagePath, and export it

Suggested in <NixOS/hackage-db#3>.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch back to unified DB location
2 participants