Comments (2)
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.
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)
- Consider including GHC version in executable name HOT 2
- How to index all locally installed packages? HOT 6
- Default `--package` to `.` HOT 2
- Make more mobile browser friendly HOT 3
- Testing team HOT 2
- No "open in new tab" option after right clicking an identifier HOT 4
- Client HOT 4
- Are there any new features? HOT 3
- GHC version match check seems to be checking the version that Cabal was compiled with HOT 4
- segfault related to TemplateHaskell HOT 9
- submodule HOT 2
- Immediately fail on GHC mismatch HOT 1
- No cabal files HOT 4
- Including more packages in https://haskell-code-explorer.mfix.io/ HOT 6
- ghc-8.10.1 support? HOT 1
- Failing to index HOT 3
- Docker image for easy and reproducible deployment
- Port to GHC 9.x.x and emacs package HOT 3
- Comparison with HLS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haskell-code-explorer.