[Haskell-cafe] Best idiom for avoiding Defaulting warnings with
ghc -Wall -Werror ??
droundy at darcs.net
Mon Jun 25 14:40:48 EDT 2007
On Mon, Jun 25, 2007 at 07:31:09PM +0100, Ian Lynagh wrote:
> 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).
> I've mentioned this before, but until
> is resolved we don't know where to discuss it (the haskell-prime or
> libraries list).
That would be great!
Department of Physics
Oregon State University
More information about the Haskell-Cafe