Skip to content

Commit 5863127

Browse files
committed
Adds test-case for GADT introduction
1 parent c1d47b9 commit 5863127

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-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 "GoldenGADTAuto.hs" 7 13 Auto ""
9798
]
9899

99100

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{-# LANGUAGE GADTs #-}
2+
module GoldenGADTAuto where
3+
data CtxGADT a where
4+
MkCtxGADT :: (Show a, Eq a) => a -> CtxGADT a
5+
6+
ctxGADT :: CtxGADT ()
7+
ctxGADT = _auto
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{-# LANGUAGE GADTs #-}
2+
module GoldenGADTAuto where
3+
data CtxGADT a where
4+
MkCtxGADT :: (Show a, Eq a) => a -> CtxGADT a
5+
6+
ctxGADT :: CtxGADT ()
7+
ctxGADT = (MkCtxGADT ())

0 commit comments

Comments
 (0)