- 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)
20 lines
307 B
Plaintext
20 lines
307 B
Plaintext
--
|
|
-- the plugin doesn't even make the resource_dyn a Dynamic.
|
|
-- let's hope that makeWith strips out the invalid declarations
|
|
--
|
|
|
|
{-# OPTIONS -fglasgow-exts #-}
|
|
|
|
module Plugin where
|
|
|
|
import API
|
|
|
|
import Data.Typeable
|
|
import GHC.Base
|
|
|
|
v :: Int
|
|
v = 0xdeadbeef
|
|
|
|
resource_dyn = (typeOf plugin, unsafeCoerce v)
|
|
|