@@ -23,13 +23,17 @@ Stack can be installed on most Unix-like operating systems, including macOS, and
23
23
on Windows.
24
24
25
25
For most Unix-like operating systems, the easiest way to install Stack is to
26
- run :
26
+ command :
27
27
28
- curl -sSL https://get.haskellstack.org/ | sh
28
+ ~~~ text
29
+ curl -sSL https://get.haskellstack.org/ | sh
30
+ ~~~
29
31
30
32
or:
31
33
32
- wget -qO- https://get.haskellstack.org/ | sh
34
+ ~~~ text
35
+ wget -qO- https://get.haskellstack.org/ | sh
36
+ ~~~
33
37
34
38
On 64-bit Windows, you can download and install the
35
39
[ Windows installer] ( https://get.haskellstack.org/stable/windows-x86_64-installer.exe ) .
@@ -50,7 +54,9 @@ instructions in the [install and upgrade guide](install_and_upgrade.md).
50
54
If you already have Stack installed, you can upgrade it to the latest version
51
55
by the command:
52
56
53
- stack upgrade
57
+ ~~~ text
58
+ stack upgrade
59
+ ~~~
54
60
55
61
## Quick Start guide
56
62
@@ -62,11 +68,12 @@ first you need to follow the [guide to install Stack](#how-to-install-Stack).
62
68
To start a new project named ` my-project ` , issue these four commands in a
63
69
terminal:
64
70
65
- stack new my-project
66
- cd my-project
67
- stack build
68
- stack exec my-project-exe
69
-
71
+ ~~~ text
72
+ stack new my-project
73
+ cd my-project
74
+ stack build
75
+ stack exec my-project-exe
76
+ ~~~
70
77
71
78
- The ` stack new my-project ` command will create a new directory, named
72
79
` my-project ` , that contains all the files needed to start a project correctly,
@@ -81,20 +88,28 @@ terminal:
81
88
82
89
For a complete list of Stack's commands and options, simply command:
83
90
84
- stack
91
+ ~~~ text
92
+ stack
93
+ ~~~
85
94
86
95
For help on a particular Stack command, for example ` stack build ` , command:
87
96
88
- stack build --help
97
+ ~~~ text
98
+ stack build --help
99
+ ~~~
89
100
90
101
If you want to launch a run-eval-print loop (REPL), then command:
91
102
92
- stack ghci
103
+ ~~~ text
104
+ stack ghci
105
+ ~~~
93
106
94
107
If you want to use Stack to install an executable provided by a Haskell package,
95
108
then all you have to do is command:
96
109
97
- stack install <package-name>
110
+ ~~~ text
111
+ stack install <package-name>
112
+ ~~~
98
113
99
114
### Workflow
100
115
@@ -223,7 +238,9 @@ The following assumes that you already have installed a version of Stack and the
223
238
If you need to check your changes quickly run ` stack ghci ` and then this command
224
239
at the REPL's prompt:
225
240
226
- :main --stack-root=<path_to_root> --stack-yaml=<path_to_stack.yaml> <COMMAND>
241
+ ~~~ text
242
+ :main --stack-root=<path_to_root> --stack-yaml=<path_to_stack.yaml> <COMMAND>
243
+ ~~~
227
244
228
245
This allows you to set a special Stack root (instead of the default Stack root)
229
246
and to target your commands at a particular ` stack.yaml ` file instead of the one
0 commit comments