@@ -1,15 +1,15 @@
1# Using `streamly` package
1# Using `streamly` package
3−The latest stable release of the package is available
4−[on Hackage](https://hackage.haskell.org/package/streamly). You can also try
3+* [Latest stable release](https://hackage.haskell.org/package/streamly) is available on
5−the latest development version
4+ Hackage.
6−[from github](https://github.com/composewell/streamly).
5+* [Latest development version](https://github.com/composewell/streamly) is
7+* See [recommeded compilation options here](docs/Build.md).
8−The default version available to you and how to pick a specific version may
9+If you are using `stack` or `nix` please make sure to add the latest version
9−depend on the build tool you are using. We have provided instructions to use a
10+from Hackage to your tool configuration.
10−specific version for some tools below.
12−## cabal
12+## Using with `cabal`
14Make sure you have `cabal` version 2.4 or later installed and you have `ghc`
14Make sure you have `cabal` version 2.4 or later installed and you have `ghc`
15available in your PATH. Refresh your package list:
15available in your PATH. Refresh your package list:
@@ -18,19 +18,20 @@ available in your PATH. Refresh your package list:
18$ cabal v2-update
18$ cabal v2-update
21−### hackage version in repl
21+### Using hackage version in repl
24−# Pick the latest version on Hackage
24+# Run repl with the latest version from Hackage
25$ cabal v2-repl --build-depends streamly
25$ cabal v2-repl --build-depends streamly
27−# Pick a specific version on Hackage
27+# Run repl with a specific version from Hackage
28$ cabal v2-repl --build-depends streamly==0.6.1
28$ cabal v2-repl --build-depends streamly==0.6.1
31−### github version in repl
31+### Using github version in repl
33+Create a directory for your playground (e.g. `test`) and create a
33−Create a `test` directory and create a `cabal.project` file in it as follows:
34+`cabal.project` file in it as follows:
36packages: .
37packages: .
@@ -40,7 +41,7 @@ source-repository-package
40 tag: master
41 tag: master
43−Create a `test.cabal` file as follows
44+Create a cabal file (e.g. `test.cabal`) as follows
46cabal-version: 2.4
47cabal-version: 2.4
@@ -57,7 +58,7 @@ Run repl:
57$ cabal v2-repl
58$ cabal v2-repl
60−### ghc
61+### Compiling with ghc
63$ cat hello.hs
64$ cat hello.hs
@@ -71,7 +72,7 @@ $ cabal v2-install streamly-0.6.1
71$ ghc -package streamly-0.6.1 hello.hs
72$ ghc -package streamly-0.6.1 hello.hs
74−### Project
75+### Using in a Project
76Add `streamly` to the `build-depends` section of your library/executable in
77Add `streamly` to the `build-depends` section of your library/executable in
77your `<package>.cabal` file. Appropriate version from Hackage will be picked
78your `<package>.cabal` file. Appropriate version from Hackage will be picked