Skip to content

Commit 8841a62

Browse files
committed
fixup! fix another error message
1 parent 59f3436 commit 8841a62

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

markdown/source_md/starting-out.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -786,13 +786,14 @@ What if we tried to make a shape like `[(1,2),(8,11,5),(4,5)]`?
786786
Well, we'd get this error:
787787

788788
```{.haskell: .ghci}
789-
• Couldn't match expected type ‘(a, b)’
790-
with actual type ‘(a0, b0, c0)’
791-
• In the expression: (8, 11, 5)
792-
In the expression: [(1, 2), (8, 11, 5), (4, 5)]
793-
In an equation for ‘it’: it = [(1, 2), (8, 11, 5), (4, 5)]
794-
• Relevant bindings include
795-
it :: [(a, b)] (bound at <interactive>:1:1)
789+
<interactive>:1:8: error: [GHC-83865]
790+
• Couldn't match expected type: (a, b)
791+
with actual type: (a0, b0, c0)
792+
• In the expression: (8, 11, 5)
793+
In the expression: [(1, 2), (8, 11, 5), (4, 5)]
794+
In an equation for ‘it’: it = [(1, 2), (8, 11, 5), (4, 5)]
795+
• Relevant bindings include
796+
it :: [(a, b)] (bound at <interactive>:1:1)
796797
```
797798

798799
It's telling us that we tried to use a pair and a triple in the same list, which is not supposed to happen.

0 commit comments

Comments
 (0)