Update examples to use new module names
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
module TestIO ( resource_dyn ) where
|
||||
|
||||
import API
|
||||
import AltData
|
||||
import AltData.Dynamic
|
||||
|
||||
import System.IO
|
||||
import System.Posix.Types ( ProcessID, Fd )
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
module API where
|
||||
|
||||
import AltData
|
||||
import AltData.Typeable
|
||||
|
||||
data TestIO = TestIO {
|
||||
field :: IO String
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
import Plugins
|
||||
import System.Plugins
|
||||
import API
|
||||
|
||||
main = do
|
||||
|
@ -1,7 +1,7 @@
|
||||
module Plugin where
|
||||
|
||||
import API
|
||||
import AltData
|
||||
import AltData.Dynamic
|
||||
|
||||
my_fun = plugin {
|
||||
equals = \x y -> (x /= y) -- a strange equals function :)
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
module API where
|
||||
|
||||
import AltData
|
||||
import AltData.Typeable
|
||||
|
||||
data Interface = Interface {
|
||||
equals :: forall t. Eq t => t -> t -> Bool
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "../../../../config.h"
|
||||
|
||||
import Plugins
|
||||
import System.Plugins
|
||||
import API
|
||||
|
||||
main = do
|
||||
|
@ -2,7 +2,7 @@
|
||||
module Plugin where
|
||||
|
||||
import API
|
||||
import AltData
|
||||
import AltData.Dynamic
|
||||
|
||||
v :: Int
|
||||
v = 0xdeadbeef
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
module API where
|
||||
|
||||
import AltData
|
||||
import AltData.Typeable
|
||||
|
||||
data Interface = Interface {
|
||||
function :: String
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
import Plugins
|
||||
import System.Plugins
|
||||
import API
|
||||
|
||||
main = do
|
||||
|
@ -5,7 +5,7 @@
|
||||
module Plugin where
|
||||
|
||||
import API
|
||||
import AltData
|
||||
import AltData.Dynamic
|
||||
|
||||
v :: Int -> Int
|
||||
v = \x -> 0xdeadbeef
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
module API where
|
||||
|
||||
import AltData
|
||||
import AltData.Typeable
|
||||
|
||||
data Interface = Interface {
|
||||
function :: String
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
import Plugins
|
||||
import System.Plugins
|
||||
import API
|
||||
|
||||
main = do
|
||||
|
@ -9,7 +9,7 @@
|
||||
module Plugin where
|
||||
|
||||
import API
|
||||
import AltData
|
||||
import AltData.Typeable
|
||||
import GHC.Base
|
||||
|
||||
v :: Int
|
||||
|
@ -3,7 +3,7 @@
|
||||
module Plugin ( resource_dyn ) where
|
||||
|
||||
import API
|
||||
import AltData
|
||||
import AltData.Dynamic
|
||||
|
||||
resource = plugin
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
module API where
|
||||
|
||||
import AltData
|
||||
import AltData.Typeable
|
||||
import GHC.Base
|
||||
|
||||
data Interface = Interface {
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
import Plugins
|
||||
import System.Plugins
|
||||
import API
|
||||
|
||||
conf = "../Plugin.in"
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
../Plugin.in:18:15:
|
||||
../Plugin.in:13:15:
|
||||
Couldn't match `Dynamic' against `(a, b)'
|
||||
Expected type: Dynamic
|
||||
Inferred type: (a, b)
|
||||
|
@ -9,7 +9,7 @@ module Plugin where
|
||||
|
||||
import API
|
||||
|
||||
import AltData
|
||||
import AltData.Typeable
|
||||
import GHC.Base
|
||||
|
||||
v :: Int
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
module API where
|
||||
|
||||
import AltData
|
||||
import AltData.Typeable
|
||||
import GHC.Base
|
||||
|
||||
data Interface = Interface {
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
import Plugins
|
||||
import System.Plugins
|
||||
import API
|
||||
|
||||
conf = "../Plugin.in"
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
../Plugin.in:18:15:
|
||||
../Plugin.in:12:15:
|
||||
Couldn't match `Dynamic' against `(a, b)'
|
||||
Expected type: Dynamic
|
||||
Inferred type: (a, b)
|
||||
|
@ -2,7 +2,7 @@
|
||||
module Plugin where
|
||||
|
||||
import API
|
||||
import AltData
|
||||
import AltData.Dynamic
|
||||
|
||||
my_fun = plugin { function = "plugin says \"hello\"" }
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
module API where
|
||||
|
||||
import AltData
|
||||
import AltData.Typeable
|
||||
|
||||
data Interface = Interface {
|
||||
function :: String
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "../../../../config.h"
|
||||
|
||||
import Plugins
|
||||
import System.Plugins
|
||||
import API
|
||||
|
||||
main = do
|
||||
|
Reference in New Issue
Block a user