1 2 3 4 5 6
{-# LANGUAGE GADTs #-} {-# LANGUAGE LinearTypes #-} {-# LANGUAGE TemplateHaskell #-} module LinearTH4 where $([d| data T where { MkT :: Int %1 -> T } |])