Skip to content

Commit 5375478

Browse files
committed
Update to LTS
1 parent 313766a commit 5375478

File tree

8 files changed

+10
-13
lines changed

8 files changed

+10
-13
lines changed

haskell/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.stack-work/
2-
*~
2+
*~
3+
.metals

haskell/app/Functions.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ module Functions (
44

55
helloWorld :: Int -> String
66
helloWorld a = "Hello World" ++ show a
7+

haskell/app/Main.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ main = do
1818

1919
print "---------"
2020
funMain
21-
22-

haskell/app/MtlEx.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
-- MTL is an acronym and stands for Monad Transformer Library
21
module MtlEx (
32
runMtlEx,
43
calcMltEx

haskell/src/Collatz.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Collatz where
1+
module Collatz (step, collatz) where
22

33
-- The module is interested in the Collatz conjecture, a famous open problem in mathematics. It asks:
44
-- Does the Collatz sequence eventually reach 1 for all positive integer initial values?

haskell/src/Set1.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Set1 where
1+
module Set1 (module Set1) where
22

33
------------------------------------------------------------------------------
44
-- Ex 1: define variables one and two. They should have type Int and

haskell/stack.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
#
1818
# resolver: ./custom-snapshot.yaml
1919
# resolver: https://example.com/snapshots/2018-01-01.yaml
20-
resolver:
21-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/21/17.yaml
20+
resolver: lts-21.25
2221

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

haskell/stack.yaml.lock

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ packages:
2020
hackage: ghci-dap-0.0.21.0@sha256:5a14d13b15701887b3fcc9ff631b676891c1b5dc22fcefeee1ec2832c1eb18b0,3326
2121
snapshots:
2222
- completed:
23-
sha256: 85d2382958c178491d3fe50d770a624621f5ab456beef7d31ac7521f780c9bc7
24-
size: 640042
25-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/21/17.yaml
26-
original:
27-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/21/17.yaml
23+
sha256: a81fb3877c4f9031e1325eb3935122e608d80715dc16b586eb11ddbff8671ecd
24+
size: 640086
25+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/21/25.yaml
26+
original: lts-21.25

0 commit comments

Comments
 (0)