on master help sign in
Update for cabal 3.0, update streamly version
commita74f006e557e0b068d0c4512e8ef0395c717a982 authorHarendra Kumar <harendra@composewell.com> dateThu 16 Apr 2020, 04:49 (7 years ago) parentf51bbb2
1 file changed+15−9
INSTALL.md+15−9
INSTALL.md+15−9
@@ -11,21 +11,21 @@ from Hackage to your tool configuration.
1111
1212## Using with `cabal`
1313
14−Make sure you have `cabal` version 2.4 or later installed and you have `ghc`
14+Make sure you have `cabal` version 3.0 or later installed and you have `ghc`
1515available in your PATH. Refresh your package list:
1616
1717```
18−$ cabal v2-update
18+$ cabal update
1919```
2020
2121### Using hackage version in repl
2222
2323```
2424# Run repl with the latest version from Hackage
25−$ cabal v2-repl --build-depends streamly
25+$ cabal repl --build-depends streamly
2626
2727# Run repl with a specific version from Hackage
28−$ cabal v2-repl --build-depends streamly==0.6.1
28+$ cabal repl --build-depends streamly==0.7.1
2929```
3030
3131### Using github version in repl
@@ -55,10 +55,17 @@ library
5555Run repl:
5656
5757```
58−$ cabal v2-repl
58+$ cabal repl
5959```
6060
61−### Compiling with ghc
61+### Using with ghc or ghci
62+
63+Before you can use a package with `ghc` or `ghci` directly you need to install
64+the package:
65+
66+```
67+$ cabal install streamly-0.7.1 --lib
68+```
6269
6370```
6471$ cat hello.hs
@@ -68,8 +75,7 @@ main = S.runStream $ S.fromListM [putStrLn "hello", putStrLn "world"]
6875```
6976
7077```
71−$ cabal v2-install streamly-0.6.1
72−$ ghc -package streamly-0.6.1 hello.hs
78+$ ghc hello.hs
7379```
7480
7581### Using in a Project
@@ -77,6 +83,6 @@ $ ghc -package streamly-0.6.1 hello.hs
7783Add `streamly` to the `build-depends` section of your library/executable in
7884your `<package>.cabal` file. Appropriate version from Hackage will be picked
7985depending on the version bounds that you specify. See the `github version in
80−repl` section above for a sample `<package>.cabal` file and optionally the
86+repl` section above for a sample `<package>.cabal` file and optionally use the
8187`cabal.project` file if you want to use the development version from github in
8288your project.