
4 Apr
2009
4 Apr
'09
4:13 p.m.
Hi
You can always do
{-# INLINE short #-} short = C.veryLongFunctionNameThatIReallyDoNotWantToTypeOutEveryTimeIUseIt
The INLINE pragma is not necessary, if an optimising compiler fails to inline that then it's not very good. However, you might want to consider the (evil) monomorphism restriction which will make that pattern fail for any functions with type classes. Thanks Neil