Update examples
This commit is contained in:
12
testsuite/dynload/poly/Plugin.hs
Normal file
12
testsuite/dynload/poly/Plugin.hs
Normal file
@ -0,0 +1,12 @@
|
||||
module Plugin where
|
||||
|
||||
import API
|
||||
import AltData.Dynamic
|
||||
|
||||
my_fun = plugin {
|
||||
equals = \x y -> (x /= y) -- a strange equals function :)
|
||||
}
|
||||
|
||||
resource_dyn :: Dynamic
|
||||
resource_dyn = toDyn my_fun
|
||||
|
Reference in New Issue
Block a user