Template Haskell boxes unboxed tuple types when reifying them
Example:
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE UnboxedTuples #-}
module Main where
import Language.Haskell.TH
data T = T (# Int, Int #)
$(return [])
main :: IO ()
main = putStrLn $(reify ''T >>= stringE . pprint)
$ /opt/ghc/8.0.1/bin/ghc -fforce-recomp Constraints.hs
[1 of 1] Compiling Main ( Constraints.hs, Constraints.o )
Linking Constraints ...
$ ./Constraints
data Main.T = Main.T ((,,,) GHC.Types.Int GHC.Types.Int)
Patch coming soon.
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Template Haskell |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |