<font face="verdana,sans-serif">*X> 3^40 `mod` 3 == modexp2 3 40 3<br>False<br>*X> modexp2 3 40 3<br>0<br>*X> 3^40 `mod` 3<br>0<br><br>I'm confused. Last I checked, 0 == 0.<br><br>Using GHC 7.4.1, and the file x.hs (which has been loaded in ghci) can be found here: <a href="http://hpaste.org/69342" target="_blank">http://hpaste.org/69342</a><br>
<br>I noticed this after prop_sanemodexp was failing.<br><br>Any help would be appreciated,<br> - Clark</font>