Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

New formula: Cabal 0.8.0 #816

Closed
mietek opened this issue Feb 23, 2010 · 14 comments
Closed

New formula: Cabal 0.8.0 #816

mietek opened this issue Feb 23, 2010 · 14 comments

Comments

@mietek
Copy link
Contributor

mietek commented Feb 23, 2010

The cabal command-line tool simplifies the process of managing Haskell software by automating the fetching, configuration, compilation and installation of Haskell libraries and programs.

http://github.com/mietek/homebrew/blob/master/Library/Formula/cabal.rb

@mietek
Copy link
Contributor Author

mietek commented Feb 24, 2010

I updated the formula to use parameterized versions of system calls (ba7cb5a580cf3df337139439988ad02809bd2bed).

@mxcl
Copy link
Contributor

mxcl commented Feb 24, 2010

Where does it store the haskell libraries that it fetches?

The typical location on OS X would be /Library/Haskell/#{haskell_version}/

Inside the cabal keg is not really any good as upgrading cabal will effectively lose the installed packages.

@mietek
Copy link
Contributor Author

mietek commented Feb 24, 2010

I wasn't sure which location to choose. Currently Cabal stores the installed packages in the ghc-pkgs keg, separately from the cabal keg.

Since /Library/Haskell doesn't exist by default, we would need to create it at some point. This raises the question of ownership—do we want it owned by root:admin, which would mean using sudo inside a formula?

Another issue is that GHC isn't the only Haskell implementation. It is the most popular one, though; so perhaps using GHC's version to mean the Haskell version would be okay.

@mxcl
Copy link
Contributor

mxcl commented Feb 24, 2010

Since we're the only ones tweaking cabal to use /Library/Haskell it should be ok to just grab the version string and not prefix it with ghc. But certainly you can prefix with ghc- if you like (I wouldn't make another subdir as Ruby, Python and that don't).

Other Haskell implementations can start prefixing if they adopt this scheme too.

Don't worry about ownership of the dir. Instead add a caveat advising the user that they may want to change the permissions (if they feel that way inclined).

Finally we should patch cabal so that the user doesn't have to do anything else for this setup to work.

@jnwhiteh
Copy link
Contributor

Any updates on this formula? Currently the GHC formula isn't terribly useful without cabal-install =)

@mietek
Copy link
Contributor Author

mietek commented Mar 19, 2010

I'm going to update the formula over the weekend.

@tanob
Copy link
Contributor

tanob commented May 14, 2010

Any updates on this formula?

@eagleflo
Copy link
Contributor

The link seems to be dead. It would be great to have cabal on homebrew.

@eagleflo
Copy link
Contributor

tanob created a formula for cabal at http://github.com/mxcl/homebrew/issues/issue/1379, I've rolled his two commits relating to cabal into one at http://github.com/arkx/homebrew/commit/cfa86f87a02d5f0f0ae245385f2b939dda3ba158.

@adamv
Copy link
Contributor

adamv commented Jun 7, 2010

Tweaks to cabal formula in this branch: http://github.com/adamv/homebrew/commits/h

Question: Should cabal be installing junk directly into "lib", or should it be going to "lib/ghc"?

@adamv
Copy link
Contributor

adamv commented Jun 30, 2010

cabal is now available as part of "haskell-platform"; do we still want/need a separate cabal formula as well?

@tanob
Copy link
Contributor

tanob commented Jul 1, 2010

IMO we can keep the cabal package, some users may be only interested on it.

@eagleflo
Copy link
Contributor

I'm thinking we should just direct people to haskell-platform. It's not THAT large and contains stuff you're likely going to need anyway. Less hassle to keep it upgraded that way as well, as cabal is able to upgrade itself.

@adamv
Copy link
Contributor

adamv commented Jul 23, 2010

Closing in favor of haskell-platform; if anyone still things Cabal should be available separately too, please provide a new clean formula. Thanks.

traymond pushed a commit to traymond/homebrew that referenced this issue Jul 22, 2014
joshua-rutherford pushed a commit to joshua-rutherford/homebrew that referenced this issue Dec 15, 2015
Closes Homebrew#816.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants