
22 Aug
2007
22 Aug
'07
11:43 a.m.
Isaac Dupree wrote:
Stefan O'Rear wrote:
Another possibility that occured to me recently, is to switch Integer to a simpler (perhaps even pure-Haskell) representation, and provide (core? extra? Hackage?) a hsgmp package. If you have big numbers, switching is easy:
import Prelude hiding(Integer) import Data.Integer.GMP type Integer = MPZ
except that
you also need to add "default (Integer, Double)" or similar. and Int is rather machine-dependent and "could" be implemented in Haskell, too. I definitely don't want programs using Int instead of Integer just because of Int being more standard and consistent. Isaac