-
-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wingman: FIx evidence when using GADT constructors (#1889)
* Fix unification pertaining to evidence * Cleanup interface; better names * Need to reapply the substituion after each arg * Reenable error debugging * Add destruct_all evidence test * Fix tests that were accidentally sorted incorrectly * FIx evidence when splitting GADTs
- Loading branch information
Showing
5 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
plugins/hls-tactics-plugin/test/golden/AutoThetaSplitUnification.expected.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{-# LANGUAGE DataKinds #-} | ||
{-# LANGUAGE GADTs #-} | ||
{-# LANGUAGE KindSignatures #-} | ||
{-# LANGUAGE TypeOperators #-} | ||
|
||
data A = A | ||
data B = B | ||
data X = X | ||
data Y = Y | ||
|
||
|
||
data Pairrow ax by where | ||
Pairrow :: (a -> b) -> (x -> y) -> Pairrow '(a, x) '(b, y) | ||
|
||
test2 :: (A -> B) -> (X -> Y) -> Pairrow '(A, X) '(B, Y) | ||
test2 = Pairrow | ||
|
17 changes: 17 additions & 0 deletions
17
plugins/hls-tactics-plugin/test/golden/AutoThetaSplitUnification.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{-# LANGUAGE DataKinds #-} | ||
{-# LANGUAGE GADTs #-} | ||
{-# LANGUAGE KindSignatures #-} | ||
{-# LANGUAGE TypeOperators #-} | ||
|
||
data A = A | ||
data B = B | ||
data X = X | ||
data Y = Y | ||
|
||
|
||
data Pairrow ax by where | ||
Pairrow :: (a -> b) -> (x -> y) -> Pairrow '(a, x) '(b, y) | ||
|
||
test2 :: (A -> B) -> (X -> Y) -> Pairrow '(A, X) '(B, Y) | ||
test2 = _ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{-# LANGUAGE DataKinds, GADTs #-} | ||
|
||
data Z ab where | ||
Z :: (a -> b) -> Z '(a, b) | ||
|
||
test :: Z ab | ||
test = _ | ||
|