[Haskell-cafe] Re: C's fmod in Haskell

Simon Marlow simonmarhaskell at gmail.com
Wed Sep 26 07:24:12 EDT 2007


Henning Thielemann wrote:

> See also
>   
> http://www.haskell.org/haskellwiki/Things_to_avoid#Forget_about_quot_and_rem 

OTOH, since quot/rem are the primitives in GHC, and div/mod are implemented 
in terms of them, then you might prefer to use quot/rem all other things 
being equal.

Cheers,
	Simon


More information about the Haskell-Cafe mailing list