-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'partial-sigs' of github.com:mrBliss/ghc-head into parti…
…al-sigs
- Loading branch information
Showing
6 changed files
with
32 additions
and
0 deletions.
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
8 changes: 8 additions & 0 deletions
8
testsuite/tests/partial-sigs/should_fail/WildcardInTypeFamilyInstanceLHS.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,8 @@ | ||
{-# LANGUAGE PartialTypeSignatures, TypeFamilies, InstanceSigs #-} | ||
module WildcardInTypeFamilyInstanceLHS where | ||
|
||
class Foo k where | ||
type Dual k :: * | ||
|
||
instance Foo Int where | ||
type Dual _ = Maybe Int |
5 changes: 5 additions & 0 deletions
5
testsuite/tests/partial-sigs/should_fail/WildcardInTypeFamilyInstanceLHS.stderr
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,5 @@ | ||
|
||
WildcardInTypeFamilyInstanceLHS.hs:8:8: | ||
Wildcard not allowed | ||
In type family instance equation of ‛Dual’: | ||
Dual _ |
8 changes: 8 additions & 0 deletions
8
testsuite/tests/partial-sigs/should_fail/WildcardInTypeFamilyInstanceRHS.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,8 @@ | ||
{-# LANGUAGE PartialTypeSignatures, TypeFamilies, InstanceSigs #-} | ||
module WildcardInTypeFamilyInstanceRHS where | ||
|
||
class Foo k where | ||
type Dual k :: * | ||
|
||
instance Foo Int where | ||
type Dual Int = Maybe _ |
5 changes: 5 additions & 0 deletions
5
testsuite/tests/partial-sigs/should_fail/WildcardInTypeFamilyInstanceRHS.stderr
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,5 @@ | ||
|
||
WildcardInTypeFamilyInstanceRHS.hs:8:19: | ||
Wildcard not allowed | ||
In type family instance equation of ‛Dual’: | ||
Maybe _ |
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