ghc-dump-util-0.1.1.0: Handy tools for working with @ghc-dump@ dumps.

Safe HaskellNone
LanguageHaskell2010

GhcDump.Util

Contents

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 #