Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from fourmolu/chinn/haddock-style-module
Add haddock-style-module configuration
- Loading branch information
Showing
17 changed files
with
345 additions
and
9 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 @@ | ||
Add `haddock-style-module` option ([#135](https://github.com/fourmolu/fourmolu/pull/135)) |
31 changes: 31 additions & 0 deletions
31
data/fourmolu/haddock-style/output-HaddockMultiLine-module=HaddockMultiLine.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,31 @@ | ||
{- | This is a test multiline | ||
module haddock | ||
-} | ||
module Foo where | ||
|
||
-- | This is a singleline function haddock | ||
single1 :: Int | ||
|
||
-- | This is a singleline function haddock | ||
single2 :: Int | ||
|
||
{- | This is a multiline | ||
function haddock | ||
-} | ||
multi1 :: Int | ||
|
||
{- | | ||
This is a multiline | ||
function haddock | ||
-} | ||
multi2 :: Int | ||
|
||
{- | This is a haddock | ||
with two consecutive newlines | ||
https://github.com/fourmolu/fourmolu/issues/172 | ||
-} | ||
foo :: Int | ||
foo = 42 |
31 changes: 31 additions & 0 deletions
31
data/fourmolu/haddock-style/output-HaddockMultiLine-module=HaddockMultiLineCompact.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,31 @@ | ||
{-| This is a test multiline | ||
module haddock | ||
-} | ||
module Foo where | ||
|
||
-- | This is a singleline function haddock | ||
single1 :: Int | ||
|
||
-- | This is a singleline function haddock | ||
single2 :: Int | ||
|
||
{- | This is a multiline | ||
function haddock | ||
-} | ||
multi1 :: Int | ||
|
||
{- | | ||
This is a multiline | ||
function haddock | ||
-} | ||
multi2 :: Int | ||
|
||
{- | This is a haddock | ||
with two consecutive newlines | ||
https://github.com/fourmolu/fourmolu/issues/172 | ||
-} | ||
foo :: Int | ||
foo = 42 |
30 changes: 30 additions & 0 deletions
30
data/fourmolu/haddock-style/output-HaddockMultiLine-module=HaddockSingleLine.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,30 @@ | ||
-- | This is a test multiline | ||
-- module haddock | ||
module Foo where | ||
|
||
-- | This is a singleline function haddock | ||
single1 :: Int | ||
|
||
-- | This is a singleline function haddock | ||
single2 :: Int | ||
|
||
{- | This is a multiline | ||
function haddock | ||
-} | ||
multi1 :: Int | ||
|
||
{- | | ||
This is a multiline | ||
function haddock | ||
-} | ||
multi2 :: Int | ||
|
||
{- | This is a haddock | ||
with two consecutive newlines | ||
https://github.com/fourmolu/fourmolu/issues/172 | ||
-} | ||
foo :: Int | ||
foo = 42 |
31 changes: 31 additions & 0 deletions
31
data/fourmolu/haddock-style/output-HaddockMultiLineCompact-module=HaddockMultiLine.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,31 @@ | ||
{- | This is a test multiline | ||
module haddock | ||
-} | ||
module Foo where | ||
|
||
-- | This is a singleline function haddock | ||
single1 :: Int | ||
|
||
-- | This is a singleline function haddock | ||
single2 :: Int | ||
|
||
{-| This is a multiline | ||
function haddock | ||
-} | ||
multi1 :: Int | ||
|
||
{-| | ||
This is a multiline | ||
function haddock | ||
-} | ||
multi2 :: Int | ||
|
||
{-| This is a haddock | ||
with two consecutive newlines | ||
https://github.com/fourmolu/fourmolu/issues/172 | ||
-} | ||
foo :: Int | ||
foo = 42 |
31 changes: 31 additions & 0 deletions
31
data/fourmolu/haddock-style/output-HaddockMultiLineCompact-module=HaddockMultiLineCompact.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,31 @@ | ||
{-| This is a test multiline | ||
module haddock | ||
-} | ||
module Foo where | ||
|
||
-- | This is a singleline function haddock | ||
single1 :: Int | ||
|
||
-- | This is a singleline function haddock | ||
single2 :: Int | ||
|
||
{-| This is a multiline | ||
function haddock | ||
-} | ||
multi1 :: Int | ||
|
||
{-| | ||
This is a multiline | ||
function haddock | ||
-} | ||
multi2 :: Int | ||
|
||
{-| This is a haddock | ||
with two consecutive newlines | ||
https://github.com/fourmolu/fourmolu/issues/172 | ||
-} | ||
foo :: Int | ||
foo = 42 |
30 changes: 30 additions & 0 deletions
30
data/fourmolu/haddock-style/output-HaddockMultiLineCompact-module=HaddockSingleLine.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,30 @@ | ||
-- | This is a test multiline | ||
-- module haddock | ||
module Foo where | ||
|
||
-- | This is a singleline function haddock | ||
single1 :: Int | ||
|
||
-- | This is a singleline function haddock | ||
single2 :: Int | ||
|
||
{-| This is a multiline | ||
function haddock | ||
-} | ||
multi1 :: Int | ||
|
||
{-| | ||
This is a multiline | ||
function haddock | ||
-} | ||
multi2 :: Int | ||
|
||
{-| This is a haddock | ||
with two consecutive newlines | ||
https://github.com/fourmolu/fourmolu/issues/172 | ||
-} | ||
foo :: Int | ||
foo = 42 |
28 changes: 28 additions & 0 deletions
28
data/fourmolu/haddock-style/output-HaddockSingleLine-module=HaddockMultiLine.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,28 @@ | ||
{- | This is a test multiline | ||
module haddock | ||
-} | ||
module Foo where | ||
|
||
-- | This is a singleline function haddock | ||
single1 :: Int | ||
|
||
-- | This is a singleline function haddock | ||
single2 :: Int | ||
|
||
-- | This is a multiline | ||
-- function haddock | ||
multi1 :: Int | ||
|
||
-- | | ||
--This is a multiline | ||
--function haddock | ||
multi2 :: Int | ||
|
||
-- | This is a haddock | ||
-- | ||
-- with two consecutive newlines | ||
-- | ||
-- | ||
-- https://github.com/fourmolu/fourmolu/issues/172 | ||
foo :: Int | ||
foo = 42 |
28 changes: 28 additions & 0 deletions
28
data/fourmolu/haddock-style/output-HaddockSingleLine-module=HaddockMultiLineCompact.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,28 @@ | ||
{-| This is a test multiline | ||
module haddock | ||
-} | ||
module Foo where | ||
|
||
-- | This is a singleline function haddock | ||
single1 :: Int | ||
|
||
-- | This is a singleline function haddock | ||
single2 :: Int | ||
|
||
-- | This is a multiline | ||
-- function haddock | ||
multi1 :: Int | ||
|
||
-- | | ||
--This is a multiline | ||
--function haddock | ||
multi2 :: Int | ||
|
||
-- | This is a haddock | ||
-- | ||
-- with two consecutive newlines | ||
-- | ||
-- | ||
-- https://github.com/fourmolu/fourmolu/issues/172 | ||
foo :: Int | ||
foo = 42 |
27 changes: 27 additions & 0 deletions
27
data/fourmolu/haddock-style/output-HaddockSingleLine-module=HaddockSingleLine.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,27 @@ | ||
-- | This is a test multiline | ||
-- module haddock | ||
module Foo where | ||
|
||
-- | This is a singleline function haddock | ||
single1 :: Int | ||
|
||
-- | This is a singleline function haddock | ||
single2 :: Int | ||
|
||
-- | This is a multiline | ||
-- function haddock | ||
multi1 :: Int | ||
|
||
-- | | ||
--This is a multiline | ||
--function haddock | ||
multi2 :: Int | ||
|
||
-- | This is a haddock | ||
-- | ||
-- with two consecutive newlines | ||
-- | ||
-- | ||
-- https://github.com/fourmolu/fourmolu/issues/172 | ||
foo :: Int | ||
foo = 42 |
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
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
Oops, something went wrong.