File: ShowFun.hs

package info (click to toggle)
haskell-show 0.4.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 92 kB
  • sloc: haskell: 199; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 295 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
-- Helper code for runplugs that doesn't agree with SmallCheck

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 ++ ">"