Skip to content

Commit c4e7aa5

Browse files
committed
Use latest GHC for example
1 parent 6d96c87 commit c4e7aa5

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

examples/2020/strict-gotchas/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#
1818
# resolver: ./custom-snapshot.yaml
1919
# resolver: https://example.com/snapshots/2018-01-01.yaml
20-
resolver: lts-15.8
20+
resolver: ghc-8.10.1
2121

2222
# User packages to be built.
2323
# Various formats can be used as shown in the example below.

examples/2020/strict-gotchas/stack.yaml.lock

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,4 @@
44
# https://docs.haskellstack.org/en/stable/lock_files
55

66
packages: []
7-
snapshots:
8-
- completed:
9-
size: 492015
10-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/15/8.yaml
11-
sha256: 926bc3d70249dd0ba05277ff00943c0addb35b627cb641752669e7cf771310d0
12-
original: lts-15.8
7+
snapshots: []

preprocessed-site/posts/2020/strict-gotchas.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ stack exec runghc -- <これから紹介するコードのファイル>.hs
5555

5656
実際に試すときは`-XStrict`というオプションを`runghc`に付けた場合と付けなかった場合両方で実行して、違いを確かめてみてください。
5757

58-
なお、使用したGHCのバージョンは8.8.3で、OSはWindows 10 ver. 1909です。
58+
なお、使用したGHCのバージョンは8.10.1で、OSはWindows 10 ver. 1909です。
5959

6060
# Case 1: `where`句だろうとなんだろうと評価
6161

@@ -160,7 +160,7 @@ main = do
160160
"dontReferArgs"
161161
const.hs: Prelude.undefined
162162
CallStack (from HasCallStack):
163-
error, called at libraries\base\GHC\Err.hs:80:14 in base:GHC.Err
163+
error, called at libraries\base\GHC\Err.hs:79:14 in base:GHC.Err
164164
undefined, called at const.hs:10:34 in main:Main
165165
```
166166

0 commit comments

Comments
 (0)