{-# LANGUAGE Safe #-}-- This module deliberately declares orphan instances:{-# OPTIONS_GHC -Wno-orphans #-}-- |---- Module : Text.Show.Functions-- Copyright : (c) The University of Glasgow 2001-- License : BSD-style (see the file libraries/base/LICENSE)---- Maintainer : libraries@haskell.org-- Stability : provisional-- Portability : portable---- Optional instance of 'Text.Show.Show' for functions:---- > instance Show (a -> b) where-- > showsPrec _ _ = showString "<function>"--moduleText.Show.Functions ()whereimportPrelude -- | @since 2.01instanceShow (a ->b )whereshowsPrec :: Int -> (a -> b) -> ShowS
showsPrec Int
_a -> b
_=String -> ShowS
showString String
"<function>"

AltStyle によって変換されたページ (->オリジナル) /