haskell - Couldn't match expected type -


area (x0:x1:xs) = determinant x0 x1 + area(x1:xs) + determinant x0 xs 

i keep getting error can't match expected type last part determinant x0 xs namely xs part

 determinant :: a-> -> ...  determinant x0 x1    determinant :: a-> [a] -> ...  determinant x0 **xs**  

what type determinant supposed have? in first call takes x0 x1 have both type a. in second call pass determinant x0 xs xs list of ([a]).


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -