Browse Source

Add instructions to build with cabal

master
Gil Mizrahi 7 months ago
parent
commit
76f4bd3bae
3 changed files with 88 additions and 1 deletions
  1. +11
    -1
      README.md
  2. +1
    -0
      cabal.project
  3. +76
    -0
      cabal.project.freeze

+ 11
- 1
README.md View File

@@ -15,11 +15,21 @@ For more information visit the [webpage](https://gilmi.gitlab.io/strema).

## Build and run

Prerequisites: [Stack](https://haskellstack.org) (Could probably also be built with [Cabal+GHC](https://www.haskell.org/downloads/) instead).
### With [Stack](https://haskellstack.org)

```sh
> stack run -- compile --input examples/factorial.strm --output /tmp/output.js
> node /tmp/output.js # use node to run the program
120
```

With [Cabal+GHC](https://www.haskell.org/ghcup):

```sh
> cabal v2-build all
> cabal v2-run stremac -- compile --input examples/factorial.strm --output /tmp/output.js
> node /tmp/output.js
120
```

Note that the type checker will be integrated to the `compile` command once it is finished.

+ 1
- 0
cabal.project View File

@@ -0,0 +1 @@
packages: src/*/*.cabal

+ 76
- 0
cabal.project.freeze View File

@@ -0,0 +1,76 @@
constraints: any.Cabal ==3.2.1.0,
any.HUnit ==1.6.2.0,
any.Only ==0.1,
any.QuickCheck ==2.14.2,
QuickCheck -old-random +templatehaskell,
any.ansi-terminal ==0.11,
ansi-terminal -example,
any.ansi-wl-pprint ==0.6.9,
ansi-wl-pprint -example,
any.array ==0.5.4.0,
any.base ==4.14.1.0,
any.binary ==0.8.8.0,
any.bytestring ==0.10.12.0,
any.cabal-doctest ==1.0.8,
any.call-stack ==0.3.0,
any.case-insensitive ==1.2.1.0,
any.clock ==0.8.2,
clock -llvm,
any.colour ==2.3.5,
any.containers ==0.6.2.1,
any.deepseq ==1.4.4.0,
any.directory ==1.3.6.0,
any.filepath ==1.4.2.1,
any.ghc-boot-th ==8.10.3,
any.ghc-prim ==0.6.1,
any.hashable ==1.3.1.0,
hashable +integer-gmp,
any.hspec ==2.7.8,
any.hspec-core ==2.7.8,
any.hspec-discover ==2.7.8,
any.hspec-expectations ==0.8.2,
any.integer-gmp ==1.0.3.0,
any.integer-logarithms ==1.0.3.1,
integer-logarithms -check-bounds +integer-gmp,
any.megaparsec ==9.0.1,
megaparsec -dev,
any.mtl ==2.2.2,
any.optparse-applicative ==0.16.1.0,
optparse-applicative +process,
any.optparse-generic ==1.4.4,
any.parsec ==3.1.14.0,
any.parser-combinators ==1.3.0,
parser-combinators -dev,
any.pretty ==1.1.3.6,
any.pretty-simple ==4.0.0.0,
pretty-simple -buildexample -buildexe,
any.prettyprinter ==1.7.0,
prettyprinter -buildreadme,
any.prettyprinter-ansi-terminal ==1.1.2,
any.primitive ==0.7.1.0,
any.process ==1.6.9.0,
any.quickcheck-io ==0.2.0,
any.random ==1.2.0,
any.raw-strings-qq ==1.1,
any.rts ==1.0,
any.scientific ==0.3.6.2,
scientific -bytestring-builder -integer-simple,
any.setenv ==0.1.1.3,
any.splitmix ==0.1.0.3,
splitmix -optimised-mixer,
any.stm ==2.5.0.0,
any.syb ==0.7.2.1,
any.system-filepath ==0.4.14,
any.template-haskell ==2.16.0.0,
any.text ==1.2.4.1,
any.tf-random ==0.5,
any.time ==1.9.3,
any.transformers ==0.5.6.2,
any.transformers-compat ==0.6.6,
transformers-compat -five +five-three -four +generic-deriving +mtl -three -two,
any.uniplate ==1.6.13,
any.unix ==2.7.2.2,
any.unordered-containers ==0.2.13.0,
unordered-containers -debug,
any.void ==0.7.3,
void -safe

Loading…
Cancel
Save