7 Sep
2006
7 Sep
'06
9:02 a.m.
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... Sent from the Haskell - Hugs-Users forum at Nabble.com.