concat-inline-0.1.0.0: Simple GHC plugin for inlining class-ops
Safe HaskellSafe-Inferred
LanguageHaskell2010

ConCat.Inline.Plugin

Description

Plugin to install a GHC BuiltinRule for inlineClassOp.

Synopsis

Documentation

inlineClassOp :: CoreExpr -> Maybe CoreExpr Source #

The CoreExpr transformation. Inlines a class op to a field accessor in a dictionary.

lookupTh :: (String -> OccName) -> (Name -> CoreM a) -> String -> String -> CoreM a Source #

findId :: String -> String -> CoreM Id Source #

Find an identifier from module and id names

findTc :: String -> String -> CoreM TyCon Source #

Find a TyCon from module and id names