@@ -19,7 +19,7 @@ An example will be easiest to understand. Consider the Haskell source file
1919
2020~~~ haskell
2121#!/usr/bin/env stack
22- -- stack script --snapshot lts-22.28 --package turtle
22+ -- stack script --snapshot lts-22.43 --package turtle
2323{-# LANGUAGE OverloadedStrings #-}
2424import Turtle (echo )
2525main = echo " Hello World!"
@@ -78,11 +78,11 @@ able to reuse everything already built).
7878
7979The second line of the source code is the Stack interpreter options comment. In
8080this example, it specifies the [ ` stack script ` ] ( ../commands/script_command.md )
81- command with the options of a LTS Haskell 22.28 snapshot
82- (` --snapshot lts-22.28 ` ) and ensuring the
81+ command with the options of a LTS Haskell 22.43 snapshot
82+ (` --snapshot lts-22.43 ` ) and ensuring the
8383[ ` turtle ` ] ( https://hackage.haskell.org/package/turtle ) package is available
8484(` --package turtle ` ). The version of the package will be that in the specified
85- snapshot (` lts-22.28 ` provides ` turtle-1.6.2 ` ).
85+ snapshot (` lts-22.43 ` provides ` turtle-1.6.2 ` ).
8686
8787## Arguments and interpreter options and arguments
8888
@@ -117,7 +117,7 @@ For example, the command `stack MyScript.hs arg1 arg2` with `MyScript.hs`:
117117~~~ haskell
118118#!/usr/bin/env stack
119119{- stack script
120- --snapshot lts-22.28
120+ --snapshot lts-22.43
121121 --
122122 +RTS -s -RTS
123123-}
@@ -133,7 +133,7 @@ main = do
133133is equivalent to the following command at the command line:
134134
135135~~~ text
136- stack script --snapshot lts-22.28 -- MyScript.hs arg1 arg2 +RTS -s -RTS
136+ stack script --snapshot lts-22.43 -- MyScript.hs arg1 arg2 +RTS -s -RTS
137137~~~
138138
139139where ` +RTS -s -RTS ` are some of GHC's
@@ -162,7 +162,7 @@ options, or by providing a comma or space separated list. For example:
162162~~~ haskell
163163#!/usr/bin/env stack
164164{- stack script
165- --snapshot lts-22.28
165+ --snapshot lts-22.43
166166 --package turtle
167167 --package "stm async"
168168 --package http-client,http-conduit
@@ -207,7 +207,7 @@ which makes use of the joke package
207207
208208~~~ haskell
209209{- stack script
210- --snapshot lts-22.28
210+ --snapshot lts-22.43
211211 --package acme-missiles
212212-}
213213import Acme.Missiles (launchMissiles )
@@ -218,7 +218,7 @@ main = launchMissiles
218218
219219The command ` stack --script-no-run-compile Script.hs ` then behaves as if the
220220command
221- ` stack script --snapshot lts-22.28 --package acme-missiles --no-run --compile -- Script.hs `
221+ ` stack script --snapshot lts-22.43 --package acme-missiles --no-run --compile -- Script.hs `
222222had been given. ` Script.hs ` is compiled (without optimisation) and the resulting
223223executable is not run: no missiles are launched in the process!
224224
@@ -260,7 +260,7 @@ those curious, here is an example with
260260{- stack
261261 runghc
262262 --install-ghc
263- --snapshot lts-22.28
263+ --snapshot lts-22.43
264264 --package base
265265 --package turtle
266266 --
@@ -284,7 +284,7 @@ it. Here is an example:
284284{- stack
285285 exec ghci
286286 --install-ghc
287- --snapshot lts-22.28
287+ --snapshot lts-22.43
288288 --package turtle
289289-}
290290~~~
0 commit comments