--- | Construct an initial term with undefined immediate subterms
--- and then map over the skeleton to fill in proper terms.
-gunfoldB :: Data a
- => Constr
- -> (forall a. Data a => a)
- -> a
-gunfoldB c f = gmapT (const f) (fromConstr c)
-
-
--- | Monadic variation on \"gunfoldB\"
-gunfoldR :: (Monad m, Data a)
- => Constr
- -> (forall a. Data a => m a)
- -> m a
-gunfoldR c f = gmapM (const f) $ fromConstr c