[1 of 1] Compiling Main ( prog.hs, prog.o )
prog.hs:1:59:
Couldn't match expected type `(t, b, b)'
against inferred type `[t1]'
In the second argument of `scanl', namely `xs'
In the expression: scanl (\ (x, a, b) n -> (x, b, n)) xs (x, a, b)
In the definition of `triangulate':
triangulate (x : a : b : xs)
= scanl (\ (x, a, b) n -> (x, b, n)) xs (x, a, b)