Hi all

I am baffled by the following error message from Hugs 98 (Version May 2006):

ERROR file:.\cube.hs:11 - Type error in explicitly typed binding
*** Term           : [(i,v) : ps]
*** Type           : [[(a,b)]]
*** Does not match : [(Int,Double)]

when attempting to compile the following declaration (line numbers in
brackets):

[10] test :: [(Int, Double)] -> Int
[11] test [(i,v):ps] = i

Is this a bug? If not, how do I write the pattern properly?

Thanks,
Peter Arrenbrecht
-- 
View this message in context: 
http://www.nabble.com/-noob--Typing-error-with-nested-list-and-tuple-pattern--tf2231523.html#a6185301
Sent from the Haskell - Hugs-Users forum at Nabble.com.

_______________________________________________
Hugs-Users mailing list
Hugs-Users@haskell.org
http://www.haskell.org/mailman/listinfo/hugs-users

Reply via email to