r/purescript • u/xalyama • Mar 02 '18
SubRecords in Purescript
https://rubenpieters.github.io/programming/purescript/2018/03/02/subrecord-purescript.html
3
Upvotes
r/purescript • u/xalyama • Mar 02 '18
View all comments
Show parent comment
1
u/xalyama Mar 03 '18
Hmm, but surely just adding the inferred signature shouldn't make the code not compile anymore?
I have the function:
Then, I get a 'no type declaration' warning. If I then just add the inferred type (which shouldn't change anything?):
Then it doesn't compile anymore.