on master help sign in
Move the "install haskell" part to "before-you-begin"
5814bceHarendra Kumar
docs/User/Tutorials/before-you-begin.md+22−3
@@ -9,10 +9,29 @@ In this tutorial, we assume basic knowledge of Haskell syntax, constructs and
9lazy evaluation. The [Haskell wikibook](https://en.wikibooks.org/wiki/Haskell)
9lazy evaluation. The [Haskell wikibook](https://en.wikibooks.org/wiki/Haskell)
10may be a good place to start and get familiar with Haskell.
10may be a good place to start and get familiar with Haskell.
11
11
12+## Installing Haskell
13+
12If you wish to follow along and run the examples in this tutorial, you will
14If you wish to follow along and run the examples in this tutorial, you will
15+need to have Haskell tool chain installed.
16+
17+You can choose one of the following sections.
18+
19+### Haskell Toolchain
20+
21+To get started, you will need a fairly recent version (last three major
22+versions will work) of the Haskell compiler `ghc` and the build tool
13−need to have [Streamly][] installed. Please see the [Setup and
23+`cabal` installed on your system. Please see the install instructions
14−Usage](/docs/User/Tutorials/setup-and-usage.md) guide for instructions
24+at https://www.haskell.org/downloads/ .
15−on how to install and use [Streamly][].
25+
26+### Development Environment using Nix
27+
28+If you use the nix package manager, a nix shell for complete
29+development environment - including a consistent set of latest streamly
30+ecosystem packages, hoogle documentation, vim and vscode editors,
31+Haskell language server (HLS) and other tools - is available at
32+[streamly-packages][streamly-packages].
33+
34+## Building for Performance
16
35
17If you wish to run benchmarks, please be sure to build your
36If you wish to run benchmarks, please be sure to build your
18application using the instructions in the [Build Guide](/docs/User/HowTo/Compiling.md).
37application using the instructions in the [Build Guide](/docs/User/HowTo/Compiling.md).
docs/User/Tutorials/setup-and-usage.md+2−21
@@ -6,8 +6,8 @@ SPDX-License-Identifer: BSD-3-Clause
6
6
7# Getting started with `Haskell Streamly`
7# Getting started with `Haskell Streamly`
8
8
9−This guide shows you how to install Haskell and the `streamly` package,
10−and then use Streamly in a simple program.
9+This guide shows you how to use Streamly in `ghci` REPL, a simple
10+program or a Haskell project.
11
11
12<!-- TODO: Add instructions for `stack` and `nix`.
12<!-- TODO: Add instructions for `stack` and `nix`.
13
13
@@ -20,25 +20,6 @@ running Windows&trade; then you may need to run a command-line shell
20under `msys` and some of the commands below may also need to be changed
20under `msys` and some of the commands below may also need to be changed
21in small ways to make them work.
21in small ways to make them work.
22
22
23−## Installing Haskell
24−
25−You can choose one of the following options.
26−
27−### Installing the Haskell Toolchain
28−
29−To get started, you will need a fairly recent version (last three major
30−versions will work) of the Haskell compiler `ghc` and the build tool
31−`cabal` installed on your system. Please see the install instructions
32−at https://www.haskell.org/downloads/ .
33−
34−### Development Environment using Nix
35−
36−If you use the nix package manager, a nix shell for complete
37−development environment - including a consistent set of latest streamly
38−ecosystem packages, hoogle documentation, vim and vscode editors,
39−Haskell language server (HLS) and other tools - is available at
40−[streamly-packages][streamly-packages].
41−
42## Using `streamly` Interactively in REPL
23## Using `streamly` Interactively in REPL
43
24
44You can try out `streamly` using `GHCi`, the interactive Haskell
25You can try out `streamly` using `GHCi`, the interactive Haskell