blob: 3d2ab1062bbec058503279e2e6aefb0b90d585fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE UnboxedSums #-}
module Main where
import Language.Haskell.TH
data T = T (# Int | Char #)
$(return [])
main :: IO ()
main = putStrLn $(reify ''T >>= stringE . show)
|