- Adapted the package to work with GHC 6.12 - Plugins that depend on the old base3 are currently not correctly loaded as the plugin loaded misses the dependence on syb (leading to unresolved symbols) - Cleaned up most of the testsuite (there are still some outstanding failures, of which only one demonstrates a bug in the plugins library as far as I can see — see previous bullet point) - Cleaned out a little cruft (but more could be done)
17 lines
354 B
Haskell
17 lines
354 B
Haskell
{-# OPTIONS -cpp -fglasgow-exts #-}
|
|
module Poly where
|
|
|
|
import Data.Typeable
|
|
|
|
data Fn = Fn {fn :: forall t. Eq t => t -> t -> Bool}
|
|
|
|
--
|
|
-- ignore type inside the Fn... is this correct?
|
|
--
|
|
instance Typeable Fn where
|
|
#if __GLASGOW_HASKELL__ >= 603
|
|
typeOf _ = mkTyConApp (mkTyCon "Poly.Fn") []
|
|
#else
|
|
typeOf _ = mkAppTy (mkTyCon "Poly.Fn") []
|
|
#endif
|