blob: eec52922a01ea2f5e76842ac8ec386971729e9d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Linear2.hs:9:15: error:
• Couldn't match type ‘'Many’ with ‘'One’
arising from multiplicity of ‘x’
• In an equation for ‘incorrectApp1’: incorrectApp1 x = dup (x, 0)
Linear2.hs:12:17: error:
• Couldn't match type ‘'Many’ with ‘'One’
arising from multiplicity of ‘x’
• In an equation for ‘incorrectApp2’: incorrectApp2 f x = f x
Linear2.hs:15:15: error:
• Couldn't match type ‘'Many’ with ‘'One’
arising from multiplicity of ‘n’
• In an equation for ‘incorrectIf’:
incorrectIf x n = if x then n else 0
|