ref: a48f2f280b33dd2f8b8d5a649f24a9c63d3eb012
dir: /tests/Multi.hs/
module Multi(main) where import Prelude import Data.Char class C a b where conv :: a -> b instance C Int Bool where conv x = x /= 0 instance C Int Char where conv = chr instance C Char Int where conv = ord main :: IO () main = do print (conv (100::Int) :: Bool) print (conv (100::Int) :: Char) print (conv 'a' :: Int)