I'm writing a package (arithmoi) that will include reasonably fast implementations of those, but I never find the time to finish it :(
Package is great, but sometimes it is useful to have such functions out of box (for example, when solving SPOJ problems).
No, you can't, unfortunately (not easily, anyway).
I have found a manual on including additional primops in GHC (exactly this situation), but this requires modifying GHC's sources, which also does not allow using them with SPOJ.
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
