Giter Site home page Giter Site logo

Comments (2)

alexwl avatar alexwl commented on June 18, 2024

Hi,

Building and indexing release versions of GHC (from Hackage) is simple.

I used cabal with buildable flag to build and index GHC 8.6, 8.4 and 8.2. buildable flag is defined in ghc.cabal (http://hackage.haskell.org/package/ghc-8.6.5/ghc.cabal), it's an experimental feature, but I haven't encountered any problems with it.

Examples:

Building and indexing GHC-8.6.5 using globally installed ghc and cabal:

cabal unpack ghc-8.6.5
cd ghc-8.6.5
cabal new-configure -f buildable
cabal new-build
haskell-code-indexer -p .

Building and indexing GHC-8.6.5 using stack and ghc/cabal from lts-13.20 snapshot:

stack unpack ghc-8.6.5
cd ghc-8.6.5
stack --resolver=lts-13.20 exec --no-ghc-package-path cabal -- new-configure -w $(stack --resolver=lts-13.20 path --compiler-exe) -f buildable
stack --resolver=lts-13.20 exec --no-ghc-package-path cabal -- new-build
haskell-code-indexer -p .

I'm not sure if there is a simple way to index the development version of GHC (8.9.0.20190510).
It seems that the current master branch of GHC depends on Cabal-3.0.0.0 (I'm not familiar with the details of the GHC build system). Cabal-3.0.0.0 is not released yet and it is obviously not supported by cabal-helper (cabal-helper extracts command line options for GHC from setup-config file).

from haskell-code-explorer.

jvanbruegge avatar jvanbruegge commented on June 18, 2024

Ok, thank you, having the local version would at least allow me to work offline better.
Still, would be nice to investigate how to index the cloned versions so you can inspect your changes.

from haskell-code-explorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.