blob: 95ee946fa0cb40c561f691b68e75f84f3447b2de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{-# Language FlexibleInstances, TypeFamilies, TypeInType, MagicHash #-}
module Main where
import Data.Kind
import GHC.Exts
class Shw (a :: TYPE rep) where
shw :: a -> String
instance Int# ~ a => Shw (a :: TYPE IntRep) where
shw a = "I#" ++ show (I# a)
main = putStrLn (shw 3#)
|