diff options
author | Jan Stolarek <jan.stolarek@p.lodz.pl> | 2015-11-11 10:49:22 +0100 |
---|---|---|
committer | Jan Stolarek <jan.stolarek@p.lodz.pl> | 2015-12-21 20:47:16 +0100 |
commit | eeecb8647585ad9eea0554b2f97a3645d2c59f88 (patch) | |
tree | d2294dd80400f495deab260e4e810b7dcbefb096 /testsuite/tests/th/T5290.stderr | |
parent | a61e717fcff9108337b1d35783ea3afbf591d3c6 (diff) | |
download | haskell-eeecb8647585ad9eea0554b2f97a3645d2c59f88.tar.gz |
Add proper GADTs support to Template Haskell
Until now GADTs were supported in Template Haskell by encoding them using
normal data types. This patch adds proper support for representing GADTs
in TH.
Test Plan: T10828
Reviewers: goldfire, austin, bgamari
Subscribers: thomie, mpickering
Differential Revision: https://phabricator.haskell.org/D1465
GHC Trac Issues: #10828
Diffstat (limited to 'testsuite/tests/th/T5290.stderr')
-rw-r--r-- | testsuite/tests/th/T5290.stderr | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/tests/th/T5290.stderr b/testsuite/tests/th/T5290.stderr index 2b4275d842..d6996d0799 100644 --- a/testsuite/tests/th/T5290.stderr +++ b/testsuite/tests/th/T5290.stderr @@ -1,5 +1,7 @@ -T5290.hs:(7,4)-(8,67): Splicing declarations +T5290.hs:(7,4)-(8,75): Splicing declarations let n = mkName "T" - in return [DataD [] n [] [NormalC n [(Unpacked, ConT ''Int)]] []] + in + return + [DataD [] n [] Nothing [NormalC n [(Unpacked, ConT ''Int)]] []] ======> data T = T {-# UNPACK #-} !Int |