Complete interactive development program for Haskell
Intero been built and tested on the following GHC versions:
- GHC 8.0.1
- GHC 7.10.3
- GHC 7.10.2
- GHC 7.8.4
It's basically GHCi plus extra features. Those are:
- Find uses of an identifier in a module.
- Find definition of an identifier in a module.
- Show the type of an expression or identifier.
- List all types of all expressions of all modules loaded.
- Completion of identifiers within a module's scope.
Probably more to come.
The following dependencies are necessary:
-
The
tinfo
andncurses
library.-
Ubuntu and Debian users can install it using the following command:
$ apt-get install libtinfo-dev $ apt-get install libncurses5-dev
-
Use stack build
(not install
) for each of your package sets. Each
LTS or nightly should have a separate stack build
. If you use
stack install
you will run into incompatibility issues
between package sets.
Standard:
$ stack build intero
From source:
$ git clone https://github.com/commercialhaskell/intero.git
$ cd intero
$ stack build intero
To run it plainly use:
$ stack exec intero
You'll have to run stack build intero
within each separate LTS
version you use, this ensures that the intero you launch correctly
matches the GHC version that you're working with.
To load up your stack project use:
$ stack ghci --with-ghc intero