Skip to content

Commit

Permalink
Fix some hlint hints
Browse files Browse the repository at this point in the history
  • Loading branch information
sergv committed Apr 2, 2018
1 parent 631d9e1 commit 7a60229
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Language/Haskell/Brittany/Internal/LayouterBasics.hs
Expand Up @@ -264,8 +264,8 @@ extractAllComments ann =
)

filterAnns :: Data.Data.Data ast => ast -> ExactPrint.Anns -> ExactPrint.Anns
filterAnns ast anns =
Map.filterWithKey (\k _ -> k `Set.member` foldedAnnKeys ast) anns
filterAnns ast =
Map.filterWithKey (\k _ -> k `Set.member` foldedAnnKeys ast)

hasAnyCommentsBelow :: Data ast => GHC.Located ast -> ToBriDocM Bool
hasAnyCommentsBelow ast@(L l _) = do
Expand Down
Expand Up @@ -216,7 +216,7 @@ wrapPatListy
-> String
-> ToBriDocM (Seq BriDocNumbered)
wrapPatListy elems start end = do
elemDocs <- Seq.fromList elems `forM` \e -> layoutPat e >>= colsWrapPat
elemDocs <- Seq.fromList elems `forM` (layoutPat >=> colsWrapPat)
sDoc <- docLit $ Text.pack start
eDoc <- docLit $ Text.pack end
case Seq.viewl elemDocs of
Expand Down

0 comments on commit 7a60229

Please sign in to comment.