Update examples
This commit is contained in:
12
testsuite/pdynload/poly/api/API.hs
Normal file
12
testsuite/pdynload/poly/api/API.hs
Normal file
@ -0,0 +1,12 @@
|
||||
{-# OPTIONS -fglasgow-exts #-}
|
||||
-- a really nasty type:
|
||||
|
||||
module API where
|
||||
|
||||
import Data.Generics
|
||||
|
||||
data Interface = Interface { field :: Typeable r => (r -> Bool) -> GenericQ [r] }
|
||||
|
||||
rsrc :: Interface
|
||||
rsrc = Interface { field = listify }
|
||||
|
Reference in New Issue
Block a user