We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f3436 commit 8841a62Copy full SHA for 8841a62
markdown/source_md/starting-out.md
@@ -786,13 +786,14 @@ What if we tried to make a shape like `[(1,2),(8,11,5),(4,5)]`?
786
Well, we'd get this error:
787
788
```{.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)
+<interactive>:1:8: error: [GHC-83865]
+ • Couldn't match expected type: (a, b)
+ with actual type: (a0, b0, c0)
+ • In the expression: (8, 11, 5)
+ In the expression: [(1, 2), (8, 11, 5), (4, 5)]
+ In an equation for ‘it’: it = [(1, 2), (8, 11, 5), (4, 5)]
+ • Relevant bindings include
796
+ it :: [(a, b)] (bound at <interactive>:1:1)
797
```
798
799
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