
11 Aug
2011
11 Aug
'11
11:01 a.m.
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.