Update examples
This commit is contained in:
17
testsuite/pdynload/spj1/Plugin.hs
Normal file
17
testsuite/pdynload/spj1/Plugin.hs
Normal file
@ -0,0 +1,17 @@
|
||||
module Plugin where
|
||||
|
||||
-- user doesn't import the API
|
||||
-- and provides a polymorphic value
|
||||
|
||||
-- import API
|
||||
-- resource :: Interface
|
||||
|
||||
--
|
||||
-- should pass type check, and dump core
|
||||
--
|
||||
-- resource :: Num a => a
|
||||
|
||||
-- import API
|
||||
|
||||
resource :: Num a => a
|
||||
resource = 7
|
Reference in New Issue
Block a user