blob: 38d9616489f6edcca2fc64be192dc3efc74ea74f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
RecordDotSyntaxFail10.hs:40:11:
Couldn't match type ‘Int’ with ‘[Char]’
arising from a functional dependency between:
constraint ‘HasField "quux" Quux String’
arising from a use of ‘setField’
instance ‘HasField "quux" Quux Int’
at RecordDotSyntaxFail10.hs:34:10-33
In the second argument of ‘($)’, namely ‘a {foo.bar.baz.quux}’
In a stmt of a 'do' block: print $ a {foo.bar.baz.quux}
In the expression:
do let a = ...
let quux = "Expecto patronum!"
print $ a {foo.bar.baz.quux}
|