hls-tactics-plugin-1.6.2.0: Wingman plugin for Haskell Language Server
Safe HaskellNone
LanguageHaskell2010

Wingman.CodeGen.Utils

Synopsis

Documentation

mkCon :: ConLike -> [Type] -> [LHsExpr GhcPs] -> LHsExpr GhcPs Source #

Make a data constructor with the given arguments.

var' :: Var a => OccName -> a Source #

Like var, but works over standard GHC OccNames.

bvar' :: BVar a => OccName -> a Source #

Like bvar, but works over standard GHC OccNames.

mkFunc :: String -> HsExpr GhcPs Source #

Get an HsExpr corresponding to a function name.

mkVal :: String -> HsExpr GhcPs Source #

Get an HsExpr corresponding to a value name.

infixCall :: String -> HsExpr GhcPs -> HsExpr GhcPs -> HsExpr GhcPs Source #

Like op, but easier to call.

appDollar :: HsExpr GhcPs -> HsExpr GhcPs -> HsExpr GhcPs Source #

Like (@@), but uses a dollar instead of parentheses.