Skip to content

Commit 3d44d27

Browse files
committed
fixed Exercises01 stack resolver from 18.8 to 16.31
1 parent aed303e commit 3d44d27

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

HaskellExercises01/src/Exercises01.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ macid = "TODO"
3535
-- other available Prelude functions
3636
-----------------------------------------------------------------------------------------------------------
3737
last :: [a] -> a
38-
last xs = error "TODO implement last"
38+
last xs = head (take (length xs -1) xs)
3939

4040
-- Exercise B
4141
-----------------------------------------------------------------------------------------------------------

HaskellExercises01/stack.yaml.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
packages: []
77
snapshots:
88
- completed:
9-
size: 586923
10-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/9.yaml
11-
sha256: 9f9fe35c949414146840a985fb228fd397c504d1781b834bfc9ab935f4d27df6
9+
size: 534126
10+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/31.yaml
11+
sha256: 637fb77049b25560622a224845b7acfe81a09fdb6a96a3c75997a10b651667f6
1212
original: lts-16.31

0 commit comments

Comments
 (0)