-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix haddock comments on infix constructors
- Loading branch information
1 parent
5e7a8f3
commit 53fa9e2
Showing
4 changed files
with
127 additions
and
6 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
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,51 @@ | ||
{- https://github.com/tweag/ormolu/issues/758 -} | ||
|
||
data A | ||
= -- | Docs for :# | ||
A :# A | ||
|
||
data WithDocs | ||
= forall left right. | ||
(Show left) => | ||
-- | Docs for left arg | ||
left | ||
-- | Docs for op | ||
:*: | ||
-- | Docs for right arg | ||
right | ||
|
||
data MixedDocs | ||
= forall left right. | ||
(Show left) => | ||
left -- ^ before | ||
:*: | ||
-- | after | ||
right | ||
|
||
data DocPartial | ||
= Left -- ^ left docs | ||
-- on multiple | ||
-- lines | ||
:*: | ||
Right | ||
| -- | op | ||
Left | ||
:*: | ||
Right | ||
| Left | ||
:*: | ||
-- | right | ||
Right | ||
| -- | op | ||
Left | ||
:*: | ||
Right | ||
| -- | op | ||
Left | ||
:*: | ||
Right | ||
|
||
data NoDocs | ||
= Left | ||
:*: | ||
Right |
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,43 @@ | ||
{- https://github.com/tweag/ormolu/issues/758 -} | ||
|
||
data A = A :# A -- ^ Docs for :# | ||
|
||
data WithDocs | ||
= forall left right. | ||
Show left => | ||
left -- ^ Docs for left arg | ||
:*: -- ^ Docs for op | ||
right -- ^ Docs for right arg | ||
|
||
data MixedDocs | ||
-- | before | ||
= forall left right. | ||
Show left => | ||
left :*: right | ||
-- ^ after | ||
|
||
data DocPartial | ||
= Left -- ^ left docs | ||
-- on multiple | ||
-- lines | ||
:*: Right | ||
| Left | ||
:*: -- ^ op | ||
Right | ||
| Left | ||
:*: | ||
-- | right | ||
Right | ||
| -- | op | ||
Left | ||
:*: | ||
Right | ||
| Left | ||
:*: | ||
Right | ||
-- ^ op | ||
|
||
data NoDocs | ||
= Left | ||
:*: | ||
Right |
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