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
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to