[noob] Typing error with nested list and tuple pattern?
Peter Arrenbrecht <[email protected]> Thu, 7 Sep 2006 00:02:12 -0700 (PDT)
| Newsgroups | gmane.comp.lang.haskell.hugs.user |
|---|---|
| Message-ID | <[email protected]> |
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.