Import hs-plugins cvs
This commit is contained in:
11
examples/dynload/simple/Plugin.hs
Normal file
11
examples/dynload/simple/Plugin.hs
Normal file
@ -0,0 +1,11 @@
|
||||
{-# OPTIONS -fglasgow-exts #-}
|
||||
module Plugin where
|
||||
|
||||
import API
|
||||
import AltData
|
||||
|
||||
my_fun = plugin { function = "plugin says \"hello\"" }
|
||||
|
||||
resource_dyn :: Dynamic
|
||||
resource_dyn = toDyn my_fun
|
||||
|
Reference in New Issue
Block a user