9 lines
220 B
Haskell
9 lines
220 B
Haskell
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 }
|