summaryrefslogtreecommitdiff
path: root/libraries/base/Text/Show/Functions.hs
blob: bfc73cafe1dd4784322a90d28c7d45ccfa45089d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{-# 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>"
--
-----------------------------------------------------------------------------

module Text.Show.Functions () where

-- | @since 2.01
instance Show (a -> b) where
        showsPrec _ _ = showString "<function>"