On Mon, 25 Jun 2007, Ian Lynagh wrote: > On Fri, Jun 22, 2007 at 11:37:15AM -0700, Dave Bayer wrote: > > > > > z = r Prelude.^ 3 > > I don't know if (^) in particular is what is causing you problems, but > IMO it has the wrong type; just as we have > (!!) :: [a] -> Int -> a > genericIndex :: (Integral b) => [a] -> b -> a > we should also have > (^) :: (Num a) => a -> Int -> a > genericPower :: (Num a, Integral b) => a -> b -> a > (or some other function name).
Seconded! > I've mentioned this before, but until > http://hackage.haskell.org/trac/haskell-prime/ticket/118 > is resolved we don't know where to discuss it (the haskell-prime or > libraries list). _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
