module TextShow.Functions (showbFunction) where
import Data.Text.Lazy.Builder (Builder)
import TextShow.Classes (TextShow(showb, showbPrec), TextShow1(..), TextShow2(..))
#include "inline.h"
showbFunction :: (a -> b) -> Builder
showbFunction = showb
instance TextShow (a -> b) where
showbPrec = showbPrecWith undefined
INLINE_INST_FUN(showbPrec)
instance TextShow1 ((->) a) where
showbPrecWith = showbPrecWith2 undefined
INLINE_INST_FUN(showbPrecWith)
instance TextShow2 (->) where
showbPrecWith2 _ _ _ _ = "<function>"
INLINE_INST_FUN(showbPrecWith2)