[1 of 1] Compiling Main ( prog.hs, prog.o )
prog.hs:8:38:
Couldn't match expected type `List a b' against inferred type `b1'
`b1' is a rigid type variable bound by
the type signature for `dot' at prog.hs:6:23
In the first argument of `dot', namely `xs'
In the second argument of `(+)', namely `xs `dot` ys'
In the expression: x * y + xs `dot` ys
prog.hs:18:21:
Couldn't match expected type `Integer' against inferred type `()'
Expected type: List Integer a
Inferred type: List () ()
In the third argument of `test', namely `nil'
In the second argument of `($)', namely `test n 0 nil nil'