-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests for indentation of type family
- Loading branch information
Showing
2 changed files
with
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class X k => G k where | ||
data GM k :: * -> * | ||
a :: GM k v | ||
|
||
instance X Int where | ||
data GM Int v = GMI (Map.Map Int v) | ||
a = GMI Map.empty | ||
|
||
instance X Char where | ||
data GM Char v = GMI (Map.Map Char v) | ||
a = GMI Map.empty | ||
|
||
class Y y where | ||
type E e | ||
z :: e | ||
|
||
instance Y Int where | ||
type E = Int | ||
z = 0 |
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,19 @@ | ||
class X k => G k where | ||
data GM k :: * -> * | ||
a :: GM k v | ||
|
||
instance X Int where | ||
data GM Int v = GMI (Map.Map Int v) | ||
a = GMI Map.empty | ||
|
||
instance X Char where | ||
data GM Char v = GMI (Map.Map Char v) | ||
a = GMI Map.empty | ||
|
||
class Y y where | ||
type E e | ||
z :: e | ||
|
||
instance Y Int where | ||
type E = Int | ||
z = 0 |