ghc-dump-util-0.2.1.0: Handy tools for working with ghc-dump dumps
Safe HaskellNone
LanguageHaskell2010

GhcDump.Util

Synopsis

Convenient IO

Manipulating Types

splitFunTys :: Type' bndr var -> [Type' bndr var] Source #

splitForAlls :: Type' bndr var -> ([bndr], Type' bndr var) Source #

Manipulating expressions

collectArgs :: Expr' bndr var -> (Expr' bndr var, [Expr' bndr var]) Source #

collectBinders :: Expr' bndr var -> ([bndr], Expr' bndr var) Source #

collectTyBinders :: Expr' bndr var -> ([bndr], Expr' bndr var) Source #