plugins-1.5.1: testsuite/dynload/simple/Plugin.hs
{-# OPTIONS -fglasgow-exts #-}
module Plugin where
import API
import Data.Dynamic
my_fun = plugin { function = "plugin says \"hello\"" }
resource_dyn :: Dynamic
resource_dyn = toDyn my_fun
{-# OPTIONS -fglasgow-exts #-}
module Plugin where
import API
import Data.Dynamic
my_fun = plugin { function = "plugin says \"hello\"" }
resource_dyn :: Dynamic
resource_dyn = toDyn my_fun