on master help sign in
Enable checking the ‘tls’ package on CI
commitd4761bf425b81d57368f0e9d76e00f86ff3d5fd5 authormrkkrp <mark.karpov@tweag.io> dateFri 6 Sep 2019, 19:22 (7 years ago) parenta3a93eb
4 files changed+16−2
data/examples/other/comment-following-preceding-gap-out.hs+6 data/examples/other/comment-following-preceding-gap.hs+6 default.nix+1−1 src/Ormolu/Printer/Internal.hs+3−1
data/examples/other/comment-following-preceding-gap-out.hsnew file+6
@@ -0,0 +1,6 @@
1+foo = bar
2+ where
3+ baz = return (quux) -- Foo
4+
5+ -- Bar
6+ meme = gege
data/examples/other/comment-following-preceding-gap.hsnew file+6
@@ -0,0 +1,6 @@
1+foo = bar
2+ where
3+ baz = return (quux) -- Foo
4+
5+ -- Bar
6+ meme = gege
default.nix+1−1
@@ -53,6 +53,7 @@ in {
5353 "servant"
5454 "servant-server"
5555 "tensorflow"
56+ "tls"
5657 "yesod-core"
5758
5859 # Comment idempotence issue
@@ -68,7 +69,6 @@ in {
6869 # "pandoc"
6970 # "pipes"
7071 # "stack"
71− # "tls"
7272
7373 # Missing language extension
7474
src/Ormolu/Printer/Internal.hs+3−1
@@ -218,7 +218,9 @@ spit dirty printingComments txt' = do
218218 , scDirtyLine = scDirtyLine sc || dirty
219219 , scRequestedDelimiter = RequestedNothing
220220 , scLastCommentSpan =
221− if printingComments
221+ -- NOTE If there are pending comments, do not reset last comment
222+ -- location.
223+ if printingComments || (not . null . scPendingComments) sc
222224 then scLastCommentSpan sc
223225 else Nothing
224226 }