GHC 7.7 compatibility

==# now returns Int#, not Bool
Merge pull request #7 from bgamari/master

GHC 7.7 compatibility