Typo
[packages/base.git] / Text / Show / Functions.hs
1 {-# LANGUAGE Safe #-}
2 -- This module deliberately declares orphan instances:
3 {-# OPTIONS_GHC -fno-warn-orphans #-}
4
5 -----------------------------------------------------------------------------
6 -- |
7 -- Module : Text.Show.Functions
8 -- Copyright : (c) The University of Glasgow 2001
9 -- License : BSD-style (see the file libraries/base/LICENSE)
10 --
11 -- Maintainer : libraries@haskell.org
12 -- Stability : provisional
13 -- Portability : portable
14 --
15 -- Optional instance of 'Text.Show.Show' for functions:
16 --
17 -- > instance Show (a -> b) where
18 -- > showsPrec _ _ = showString \"\<function\>\"
19 --
20 -----------------------------------------------------------------------------
21
22 module Text.Show.Functions () where
23
24 import Prelude
25
26 instance Show (a -> b) where
27 showsPrec _ _ = showString "<function>"
28