File: readme.md

package info (click to toggle)
haskell-isocline 1.0.9-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 552 kB
  • sloc: ansic: 8,176; haskell: 607; makefile: 9
file content (60 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Haskell Binding for Isocline

You can build and run the [example] program as:
```
$ ghc -ihaskell test/Example.hs src/isocline.c
$ ./test/Example
```

See the [API documentation](https://hackage.haskell.org/package/isocline/docs/System-Console-Isocline.html) on hackage.

## Using with Stack

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`).

## Using with Cabal

To use it with Cabal, add
```
build-depends:
  isocline
```
to your `project.cabal` file (and perhaps run `cabal update`).


# Building Isocline from Source

## Building with Stack

From the isocline directory, run:

```
$ stack build
$ stack exec example
```

## Building with Cabal

From the isocline directory, run:

```
$ cabal build
$ cabal run example
```

You can install the locally build `isocline` package as:
```
$ cabal install
```

[example]: https://github.com/daanx/isocline/blob/main/test/Example.hs