diff --git a/src/Nixfmt/Types.hs b/src/Nixfmt/Types.hs index 4af6d939..3429bd71 100644 --- a/src/Nixfmt/Types.hs +++ b/src/Nixfmt/Types.hs @@ -424,8 +424,8 @@ data Token | TLessEqual | TNot | TUnequal - | TPipeTo - | TPipeFrom + | TPipeForward + | TPipeBackward | SOF deriving (Eq, Show) @@ -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 @@ -523,6 +523,6 @@ tokenText TLess = "<" tokenText TLessEqual = "<=" tokenText TNot = "!" tokenText TUnequal = "!=" -tokenText TPipeTo = "|>" -tokenText TPipeFrom = "<|" +tokenText TPipeForward = "|>" +tokenText TPipeBackward = "<|" tokenText SOF = ""