3 A type signature is more polymorphic than the inferred type
4 Can't for-all the type variable(s) `a1cm'
5 in the type `ST a1cm a1ci'
6 In a polymorphic function argument: (itrapstate' i k s)
7 In the first argument of `runST', namely `(itrapstate' i k s)'
8 In an equation for function `itrapstate':
9 itrapstate ((i, k), (j, l)) f c d s arr
10 = runST (itrapstate' i k s)
16 ((readArray arr (i, (k)))
19 (newstate, newval) = f (... ... ...) val
21 (... ... ... ...) >> (... ... ... ...)))
26 ((itrapstatesnd i k s)
27 >>= (\ (s, arr) -> itrapstate' i (k + 1) s))
30 A type signature is more polymorphic than the inferred type
31 Can't for-all the type variable(s) `a1f3'
32 in the type `ST a1f3 a1eZ'
33 In a polymorphic function argument: (itrap' i k)
34 In the first argument of `runST', namely `(itrap' i k)'
35 In an equation for function `itrap':
36 itrap ((i, k), (j, l)) f arr
43 ((readArray arr (i, (k)))
45 -> (writeArray arr (..., ...) (... ...))
46 >> (itrapsnd (... + 1) k)))
51 ((itrapsnd i k) >> (itrap' i (k + 1)))
54 A type signature is more polymorphic than the inferred type
55 Can't for-all the type variable(s) `a1fu'
56 in the type `ST a1fu a1fk'
57 In a polymorphic function argument: ((readArray arr i)
59 -> (writeArray arr i (... ...))
61 In the first argument of `runST', namely
63 >>= (\ val -> (writeArray arr i (... ...)) >> (return arr)))'
64 In an equation for function `itiap':
66 = runST ((readArray arr i)
67 >>= (\ val -> (... ... ... ...) >> (... ...)))
70 A type signature is more polymorphic than the inferred type
71 Can't for-all the type variable(s) `a1gq'
72 in the type `ST a1gq a1gm'
73 In a polymorphic function argument: (newArray ((1, (1)), (n)) x)
74 In the first argument of `runST', namely
75 `(newArray ((1, (1)), (n)) x)'
76 In an equation for function `itgen':
77 itgen n x = runST (newArray ((1, (1)), (n)) x)
80 Compilation had errors