30 Mar
2009
30 Mar
'09
11:02 p.m.
Hi, thanks for the bug report, I don't have time to work on it at the moment, but a quick fix would be to create a module like the following and include it in your program. I'll add a cleaner fix to the repo at some point.
module FunPtrInstance where
import Jhc.Addr
instance Eq (FunPtr a) where FunPtr a == FunPtr b = a == b FunPtr a /= FunPtr b = a /= b
instance Ord (FunPtr a) where compare (FunPtr a) (FunPtr b) = compare a b FunPtr a <= FunPtr b = a <= b FunPtr a < FunPtr b = a < b FunPtr a > FunPtr b = a > b FunPtr a >= FunPtr b = a >= b
John -- John Meacham - ⑆repetae.net⑆john⑈