Change return type for Int64# and Word64# comparisons?

Luite Stegeman stegeman at
Thu Aug 15 17:36:59 CEST 2013

Hi all,

With the recent change of comparison primops to return Int# instead of
Bool, the 64 bit operations were also changed, to return Int64# or Word64#:

It seems a bit wasteful to me to return a value bigger than a machine word
for just a boolean. Changing the type to Int# would make the same
optimizations possible as for the native-sized primops (though for me
personally Bool would be even better since they map to JavaScript bools in


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list