File: ShowFun.hs

package info (click to toggle)
haskell-show 0.6-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 72 kB
  • sloc: haskell: 9; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 231 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
module ShowFun where

import Data.Typeable

instance (Typeable a, Typeable b) => Show (a -> b) where
    show e = '<' : (show . typeOf) e ++ ">"

instance Typeable a => Show (IO a) where
    show e = '<' : (show . typeOf) e ++ ">"