| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
AutoApply
Documentation
autoapply :: [Name] -> Name -> Q Exp Source #
autoapply args fun creates an expression which is equal to fun applied
to as many of the values in args as possible.
autoapplyDecs :: (String -> String) -> [Name] -> [Name] -> Q [Dec] Source #
autoapplyDecs mkName args funs will wrap every function in funs by
applying it to as many of the values in args as possible. The new function
name will be mkName applied to the wrapped function name.
Type signatures are not generated, so you may want to add these yourself or
turn on NoMonomorphismRestriction if you have polymorphic constraints.