[Haskell-cafe] Numerics and Warnings

Tom Ellis tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Wed Apr 10 21:26:20 CEST 2013

On Wed, Apr 10, 2013 at 11:20:15PM +0400, Aleksey Khudyakov wrote:
> This IS rather annoying problem for numeric code. Raising value to positive
> power is quite common operation yet ^ operator generally couldn't be used
> because it leads to warning about type defaulting (rightfully) and one
> wants to keep code warning free. Actually it's problem with warnings and
> I don't think adding some ad-hoc rules for generating warning is necessarily
> bad idea

Like I demonstrated in my reply to Barak, there is a way around this which
does not require adding ad-hoc complexity to the compiler.


More information about the Haskell-Cafe mailing list