| Section 6.1.6 of the report says that "Functions are an instance of the
| Show class but not
| Read." How are functions meant to be shown? The standard prelude
| 'specification' doesn't say anything about it.
That's a typo. Section 6.3.3 says
``All Prelude types, except function types and IO types, are instances of Show and
Read''
Before Haskell 98 there was an instance
instance Show (a -> b) where
showsPrec p f = showString "<function>"
Cheers, Ralf
- Showing functions Tony Davie
- Ralf Hinze
