Update examples
This commit is contained in:
16
testsuite/hier/hier1/api/API.hs
Normal file
16
testsuite/hier/hier1/api/API.hs
Normal file
@ -0,0 +1,16 @@
|
||||
--
|
||||
-- API for plugin test
|
||||
--
|
||||
|
||||
module API where
|
||||
|
||||
import Modules.Flags as Flags
|
||||
|
||||
data Interface = Interface {
|
||||
dbFunc :: Flags.FlagRec -> Int
|
||||
}
|
||||
|
||||
|
||||
plugin :: Interface
|
||||
plugin = Interface { dbFunc = (\x -> 1) }
|
||||
|
Reference in New Issue
Block a user