Skip to content

Commit

Permalink
Rename pipes to Forward and Backward
Browse files Browse the repository at this point in the history
  • Loading branch information
dasJ committed Aug 6, 2024
1 parent 2c6f39e commit 55feeb5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Nixfmt/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ data Token
| TLessEqual
| TNot
| TUnequal
| TPipeTo
| TPipeFrom
| TPipeForward
| TPipeBackward
| SOF
deriving (Eq, Show)

Expand Down Expand Up @@ -469,8 +469,8 @@ operators =
[Op InfixL TAnd],
[Op InfixL TOr],
[Op InfixL TImplies],
[Op InfixL TPipeTo],
[Op InfixR TPipeFrom]
[Op InfixL TPipeForward],
[Op InfixR TPipeBackward]
]

tokenText :: Token -> Text
Expand Down Expand Up @@ -523,6 +523,6 @@ tokenText TLess = "<"
tokenText TLessEqual = "<="
tokenText TNot = "!"
tokenText TUnequal = "!="
tokenText TPipeTo = "|>"
tokenText TPipeFrom = "<|"
tokenText TPipeForward = "|>"
tokenText TPipeBackward = "<|"
tokenText SOF = ""

0 comments on commit 55feeb5

Please sign in to comment.