Cabal for GHC 7.8
Manuel M T Chakravarty
chak at cse.unsw.edu.au
Sat Jun 28 10:34:59 UTC 2014
I eventually noticed that it the Cabal repo is a submodule, but I wasn’t aware of the Git’s support to rewrite URLs.
To answer your questions: cloning from GitHub is useful as I can fork the repos on GitHub. At haskell.org, I need to use branches, which I don’t like.
Herbert Valerio Riedel <hvriedel at gmail.com>:
> On 2014-06-28 at 07:48:16 +0200, Manuel M T Chakravarty wrote:
>> I noticed that the Cabal package doesn’t have a branch for ghc-7.8:
>> Is that intended?
> A ghc-7.8 branch is not really needed, as Cabal is registered as
> submodule in ghc.git's ghc-7.8 branch. It's just sync-all that
>> Maybe as a result the instructions at
>> to check out a branch from the *GitHub mirror repos* doesn’t work
> For cloning via the GitHub-mirror I'd recommend using the scheme as
> described in . That is, set up url-rewrites (that take also into
> account the 'packages/foo' -> 'packages-foo' rewriting):
> git config --global url."git://github.com/ghc/".insteadOf git://git.haskell.org/
> git config --global url."git://github.com/ghc/packages-".insteadOf git://git.haskell.org/packages/
> and then clone as if you would from git://git.haskell.org
> git clone -b ghc-7.8 git://git.haskell.org/ghc.git ghc-7.8
> cd ghc-7.8
> ./sync-all get -b ghc-7.8
> all network access will be redirected to github.com instead.
> : Btw, why do you want to use the github mirror instead of git://git.haskell.org?
> : https://ghc.haskell.org/trac/ghc/wiki/WorkingConventions/Git/Submodules#UsingtheGitHubGHCMirror
> ghc-devs mailing list
> ghc-devs at haskell.org
More information about the ghc-devs