[Haskell-cafe] Data.Map.Map Pattern Matching

Nico Rolle nrolle at web.de
Wed May 13 13:06:12 EDT 2009


Hi

I tried this but it diddn't work in ghci:

import qualified Data.Map as Map

test :: Map.Map [Int] [[Int]] -> Bool
test (fromList[((i:is), (j:js))]) = [i] == j

i get the : "Parse error in pattern
Failed." error.

regards


More information about the Haskell-Cafe mailing list