Skip to content

Commit

Permalink
Remove spaces around typed expression brackets
Browse files Browse the repository at this point in the history
To match the formatting of other brackets.

Fixes mihaimaruseac#638
  • Loading branch information
toku-sa-n committed Jan 8, 2023
1 parent 6926b7d commit c0cc927
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TESTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2678,7 +2678,7 @@ f =
Typed quote.

```haskell
f = [|| a ||]
f = [||a||]
```

Preserve the trailing newline.
Expand Down
4 changes: 2 additions & 2 deletions src/HIndent/Pretty/Combinators/Wrap.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ braces = wrap "{" "}"
brackets :: Printer a -> Printer a
brackets = wrap "[" "]"

-- | Wraps with @[|| @ and @ ||]@.
-- | Wraps with @[||@ and @||]@.
typedBrackets :: Printer a -> Printer a
typedBrackets = wrap "[|| " " ||]"
typedBrackets = wrap "[||" "||]"

-- | Wraps with double quotes.
doubleQuotes :: Printer a -> Printer a
Expand Down

0 comments on commit c0cc927

Please sign in to comment.