Import hs-plugins cvs
This commit is contained in:
8
examples/shell/shell/API.hs
Normal file
8
examples/shell/shell/API.hs
Normal file
@ -0,0 +1,8 @@
|
||||
module API where
|
||||
|
||||
-- the interface between the app and the plugin
|
||||
data Interface = Interface { function :: String -> String }
|
||||
|
||||
-- default values for the interface
|
||||
plugin :: Interface
|
||||
plugin = Interface { function = id }
|
Reference in New Issue
Block a user