Skip to content

Commit c706fa5

Browse files
committed
Adds a test case from #32
1 parent 1f533bd commit c706fa5

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

test/functional/Tactic.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ tests = testGroup
9494
, goldenTest "GoldenNote.hs" 2 8 Auto ""
9595
, goldenTest "GoldenPureList.hs" 2 12 Auto ""
9696
, goldenTest "GoldenGADTDestruct.hs" 7 17 Destruct "gadt"
97+
, goldenTest "GoldenGADTDestructCoercion.hs" 8 17 Destruct "gadt"
9798
, goldenTest "GoldenGADTAuto.hs" 7 13 Auto ""
9899
]
99100

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{-# LANGUAGE RankNTypes #-}
2+
{-# LANGUAGE GADTs #-}
3+
module GoldenGADTDestruct where
4+
data E a b where
5+
E :: forall a b. (b ~ a, Ord a) => b -> E a [a]
6+
7+
ctxGADT :: E a b -> String
8+
ctxGADT gadt = _decons
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{-# LANGUAGE RankNTypes #-}
2+
{-# LANGUAGE GADTs #-}
3+
module GoldenGADTDestruct where
4+
data E a b where
5+
E :: forall a b. (b ~ a, Ord a) => b -> E a [a]
6+
7+
ctxGADT :: E a b -> String
8+
ctxGADT gadt = (case gadt of { (E b) -> _ })

0 commit comments

Comments
 (0)