From: Michael Orlitzky Date: Wed, 19 Feb 2014 00:53:35 +0000 (-0500) Subject: Fix the type of zip2 to be more general. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=ca021dad591f47dbe1581c19c4ae4bf1fee821b9;p=numerical-analysis.git Fix the type of zip2 to be more general. --- diff --git a/src/Linear/Matrix.hs b/src/Linear/Matrix.hs index cefad60..8266557 100644 --- a/src/Linear/Matrix.hs +++ b/src/Linear/Matrix.hs @@ -856,7 +856,7 @@ trace matrix = -- >>> zip2 m1 m2 -- (((1,1),(2,1)),((3,1),(4,1))) -- -zip2 :: (Arity m, Arity n) => Mat m n a -> Mat m n a -> Mat m n (a,a) +zip2 :: (Arity m, Arity n) => Mat m n a -> Mat m n b -> Mat m n (a,b) zip2 m1 m2 = construct lambda where