<font face="verdana,sans-serif">*X&gt; 3^40 `mod` 3 == modexp2 3 40 3<br>False<br>*X&gt; modexp2 3 40 3<br>0<br>*X&gt; 3^40 `mod` 3<br>0<br><br>I&#39;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>