{-# OPTIONS -fglasgow-exts #-}
module LocalQuantors () where
-- A datatype with a locally quantified component-- Seems to be too polymorphic to descend into structure!-- Largely irrelevant?!
import Data.Generics
data Test = Test (GenericT) deriving Typeable
instance DataTest
where
gfoldl _ zx = zx-- folding without descent toConstr (Test _) = testConstrgunfold _ _ = error"gunfold"dataTypeOf _ = testDataTypetestConstr = mkConstrtestDataType"Test" [] PrefixtestDataType = mkDataType"Main.Test" [testConstr]