Update examples
This commit is contained in:
16
testsuite/pdynload/spj4/Plugin.hs
Normal file
16
testsuite/pdynload/spj4/Plugin.hs
Normal file
@ -0,0 +1,16 @@
|
||||
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 = Interface { field = 7 :: Num a => a }
|
Reference in New Issue
Block a user