You can build and run the example program as:
$ ghc -ihaskell test/Example.hs src/isocline.c
$ ./test/Example
See the API documentation on hackage.
You can build with isocline by adding
extra-deps:
- isocline-<version>
to your stack.yaml
file, and
dependencies:
- isocline
to your package.yaml
file (and also run stack update
).
To use it with Cabal, add
build-depends:
isocline
to your project.cabal
file (and perhaps run cabal update
).
From the isocline directory, run:
$ stack build
$ stack exec example
From the isocline directory, run:
$ cabal build
$ cabal run example
You can install the locally build isocline
package as:
$ cabal install