Import hs-plugins cvs
This commit is contained in:
22
examples/dynload/should_fail_3/api/API.hs
Normal file
22
examples/dynload/should_fail_3/api/API.hs
Normal file
@ -0,0 +1,22 @@
|
||||
{-# OPTIONS -cpp -fglasgow-exts #-}
|
||||
|
||||
module API where
|
||||
|
||||
import AltData
|
||||
import GHC.Base
|
||||
|
||||
data Interface = Interface {
|
||||
function :: String
|
||||
}
|
||||
|
||||
instance Typeable Interface where
|
||||
#if __GLASGOW_HASKELL__ >= 603
|
||||
typeOf _ = mkTyConApp (mkTyCon "API.Interface") []
|
||||
#else
|
||||
typeOf _ = mkAppTy (mkTyCon "API.Interface") []
|
||||
#endif
|
||||
|
||||
plugin :: Interface
|
||||
plugin = Interface { function = "goodbye" }
|
||||
|
||||
unsafeCoerce = unsafeCoerce#
|
Reference in New Issue
Block a user