Skip to content

Commit

Permalink
update README & koneko.cabal (no more haskell platform)
Browse files Browse the repository at this point in the history
  • Loading branch information
obfusk committed Aug 29, 2024
1 parent ff961d6 commit 3ed53a4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,49 +469,49 @@ See [(Build) Requirements](#build-requirements).
### Linux (& Probably macOS and *BSD)

```bash
$ make cabal_build # Haskell Build
$ ./scripts/repl_hs # Haskell REPL
$ make cabal_build # Haskell Build
$ ./scripts/repl_hs # Haskell REPL

$ ./scripts/repl_js # Node.js REPL
$ make repl_browser # Browser REPL
$ ./scripts/repl_js # Node.js REPL
$ make repl_browser # Browser REPL
```

### Windows (Untested)

```
$ cabal v2-build --write-ghc-environment-files=always --enable-tests
$ cabal v2-run koneko # Haskell REPL
$ cabal v2-run koneko # Haskell REPL
$ node js\koneko # Node.js REPL
$ node js\koneko # Node.js REPL
```

... TODO ...

## (Build) Requirements

The Haskell implementation requires the [Haskell
Platform](https://www.haskell.org/platform) (and a few additional
libraries that the Cabal build system provided with the Platform can
install); see `koneko.cabal` for the dependencies.
The Haskell implementation requires [GHC](https://www.haskell.org/ghc/),
[`cabal-install`](https://cabal.readthedocs.io/) (and a few additional libraries
that can be installed using Cabal); see `koneko.cabal` for the dependencies.

The JavaScript implementation requires Node.js.

### Debian

```bash
$ apt install haskell-platform libghc-aeson-dev \
$ apt install cabal-install libghc-aeson-dev libghc-async-dev \
libghc-cmdargs-dev libghc-doctest-dev libghc-hashtables-dev \
libghc-megaparsec-dev libghc-regex-pcre-dev \
libghc-safe-dev libghc-silently-dev # Haskell version
$ apt install nodejs # Node.js version
$ apt install rlwrap # (readline support)
libghc-megaparsec-dev libghc-random-dev libghc-regex-pcre-dev \
libghc-safe-dev libghc-silently-dev libghc-split-dev \
libghc-unordered-containers-dev libghc-vector-dev # Haskell version
$ apt install nodejs # Node.js version
$ apt install rlwrap # (readline support)
```

## Specs & Docs

```bash
$ make cabal_build test_haskell # Haskell
$ make test_node # JavaScript
$ make cabal_build test_haskell # Haskell
$ make test_node # JavaScript
```

TODO: haddock
Expand Down
7 changes: 3 additions & 4 deletions koneko.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ common deps
-- included w/ ghc:
array, base >=4.9 && <4.21, bytestring, deepseq, directory,
filepath, text,
-- included w/ haskell-platform:
async, random, split, unordered-containers >=0.2.9.0, vector,
-- separate packages:
aeson >=2.0.0.0, cmdargs, hashtables, megaparsec >=7.0,
regex-pcre >=0.94.0.0, safe, silently
aeson >=2.0.0.0, async, cmdargs, hashtables, megaparsec >=7.0,
random, regex-pcre >=0.94.0.0, safe, silently, split,
unordered-containers >=0.2.9.0, vector

-- Directories containing source files.
hs-source-dirs: src
Expand Down

0 comments on commit 3ed53a4

Please sign in to comment.