1 2 3 4 5 6 7 8 9 10
{-# LANGUAGE MagicHash #-} {-# LANGUAGE TypeData #-} module TDTagToEnum where import GHC.Exts (tagToEnum#) type data Letter = A | B | C f :: Letter f = tagToEnum# 0#