Closed maoe closed 12 years ago
Thanks. I noticed that the IsFunction stuff is perhaps a bit too magical.
Did you test these changes with GHC 6.12 and 7.0? I played around with similar tricks, but I didn't get it to work reliably.
Hi,
I agree with you. This is a bit magical but works well.
I've compiled Data.AttoLisp.Test on GHC 6.12.3, 7.0.3 and 7.2.1. All of these have passed the tests. As Oleg mentioned in isFunction.hs, this trick should work on GHCi 6.2.1 and GHCi 6.4.
Introduced
IsFunction
type class, which was quoted from http://okmij.org/ftp/Haskell/typecast.html#is-function-type.The problem is that we cannot compile
Data.AttoLisp.Test
with GHC 7.2.1: