src/Data/SafeCopy/Derive.hs:246:61: error:
• Couldn't match expected type ‘[Type]’ with actual type ‘Type’
• In the second argument of ‘map’, namely ‘ty’
In the third argument of ‘foldl’, namely ‘(map return ty)’
In the first argument of ‘worker'’, namely
‘(foldl appT (conT tyName) (map return ty))’
|
246 | worker' (foldl appT (conT tyName) (map return ty)) context [] (zip [0..] cons)
| ^^
src/Data/SafeCopy/Derive.hs:249:61: error:
• Couldn't match expected type ‘[Type]’ with actual type ‘Type’
• In the second argument of ‘map’, namely ‘ty’
In the third argument of ‘foldl’, namely ‘(map return ty)’
In the first argument of ‘worker'’, namely
‘(foldl appT (conT tyName) (map return ty))’
|
249 | worker' (foldl appT (conT tyName) (map return ty)) context [] [(0, con)]
| ^^
src/Data/SafeCopy/Derive.hs:280:21: error:
• Couldn't match expected type ‘Type’ with actual type ‘[Type]’
• In the second argument of ‘(==)’, namely ‘tyIndex’
In the expression: ty == tyIndex
In a stmt of a pattern guard for
a case alternative:
ty == tyIndex
|
280 | | ty == tyIndex ->
| ^^^^^^^
src/Data/SafeCopy/Derive.hs:281:61: error:
• Couldn't match expected type ‘[Type]’ with actual type ‘Type’
• In the second argument of ‘map’, namely ‘ty’
In the third argument of ‘foldl’, namely ‘(map return ty)’
In the first argument of ‘worker'’, namely
‘(foldl appT (conT tyName) (map return ty))’
|
281 | worker' (foldl appT (conT tyName) (map return ty)) context [] (zip [0..] cons)
| ^^
src/Data/SafeCopy/Derive.hs:286:21: error:
• Couldn't match expected type ‘Type’ with actual type ‘[Type]’
• In the second argument of ‘(==)’, namely ‘tyIndex’
In the expression: ty == tyIndex
In a stmt of a pattern guard for
a case alternative:
ty == tyIndex
|
286 | | ty == tyIndex ->
| ^^^^^^^
src/Data/SafeCopy/Derive.hs:287:61: error:
• Couldn't match expected type ‘[Type]’ with actual type ‘Type’
• In the second argument of ‘map’, namely ‘ty’
In the third argument of ‘foldl’, namely ‘(map return ty)’
In the first argument of ‘worker'’, namely
‘(foldl appT (conT tyName) (map return ty))’
|
287 | worker' (foldl appT (conT tyName) (map return ty)) context [] [(0, con)]
|