[1 of 1] Compiling Main ( prog.hs, prog.o )
prog.hs:7:50:
Couldn't match expected type `(a, c)'
against inferred type `[a1] -> a1'
In the first argument of `(&&&)', namely `head'
In the second argument of `($)', namely
`(head &&& groupInPairs . tail)'
In the expression:
uncurry (map . (uncurry . (,,))) $ (head &&& groupInPairs . tail)