[jhc] progress in compiling hopengl via jhc

John Meacham john at repetae.net
Mon Mar 30 19:02:03 EDT 2009


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⑈


More information about the jhc mailing list