-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect newlines in data declarations in more cases
- Loading branch information
Showing
13 changed files
with
89 additions
and
41 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
File renamed without changes.
File renamed without changes.
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,6 @@ | ||
data | ||
{-# CTYPE "header.h" "an-ffi-type-with-along-name" #-} | ||
AnFFITypeWithAlongName = AnFFITypeWithAlongName | ||
{ a :: X, | ||
b :: Y | ||
} |
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,6 @@ | ||
data | ||
{-# CTYPE "header.h" "an-ffi-type-with-along-name" #-} | ||
AnFFITypeWithAlongName = AnFFITypeWithAlongName | ||
{ a :: X, | ||
b :: Y | ||
} |
2 changes: 0 additions & 2 deletions
2
...claration/data/field-layout/record-out.hs → ...aration/data/field-layout/record-0-out.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
module Main where | ||
|
||
-- | Foo. | ||
data Foo = Foo | ||
{ -- | Something | ||
|
2 changes: 0 additions & 2 deletions
2
...s/declaration/data/field-layout/record.hs → ...declaration/data/field-layout/record-0.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
module Main where | ||
|
||
-- | Foo. | ||
|
||
data Foo = Foo | ||
|
11 changes: 11 additions & 0 deletions
11
data/examples/declaration/data/field-layout/record-1-out.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,11 @@ | ||
-- | Foo. | ||
data Foo | ||
= Foo | ||
{ -- | Something | ||
foo :: Foo Int Int, | ||
-- | Something else | ||
bar :: | ||
Bar | ||
Char | ||
Char | ||
} |
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,10 @@ | ||
-- | Foo. | ||
|
||
data Foo = | ||
Foo | ||
{ foo :: Foo Int Int | ||
-- ^ Something | ||
, bar :: Bar Char | ||
Char | ||
-- ^ Something else | ||
} |
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,7 @@ | ||
data IndexWithInfo schema | ||
= forall x. | ||
IndexWithInfo | ||
{ checkedIndex :: Index schema x, | ||
checkedIndexName :: U.Variable, | ||
checkedIndexType :: Type x | ||
} |
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,7 @@ | ||
data IndexWithInfo schema = | ||
forall x. | ||
IndexWithInfo | ||
{ checkedIndex :: Index schema x | ||
, checkedIndexName :: U.Variable | ||
, checkedIndexType :: Type x | ||
} |
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