summaryrefslogtreecommitdiff
path: root/lec07/JoinList.hs
diff options
context:
space:
mode:
authorEdoardo La Greca2025-09-23 20:48:00 +0200
committerEdoardo La Greca2025-09-23 20:48:00 +0200
commitc72cdfea5bb2ff6fff2382061f156b76795b71fb (patch)
treeabf9bb9a172fa7d871e611030c40f45cd909fe69 /lec07/JoinList.hs
parent5dc60cc0bee6b36b82ccd6e4c18d4de80aef0f91 (diff)
fix missing import and function type for fourth exercise
Diffstat (limited to 'lec07/JoinList.hs')
-rw-r--r--lec07/JoinList.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/lec07/JoinList.hs b/lec07/JoinList.hs
index db74811..0d62d94 100644
--- a/lec07/JoinList.hs
+++ b/lec07/JoinList.hs
@@ -2,6 +2,7 @@
module JoinList where
import Buffer
+import Editor
import Scrabble
import Sized
@@ -95,7 +96,7 @@ instance Buffer (JoinList (Score, Size) String) where
value jl = getScore $ foldJ 0 (\s -> scoreString s) (\x y -> x <> y) jl
where getScore (Score s) = s
-initialLines :: [String]
+initialLines :: String
initialLines =
"This is the first line.\n" ++
"Then this, which is the second line.\n" ++