@@ -17,7 +17,7 @@ data Assoc = L | N | R deriving (Eq,Show)
1717type OpTable = [(Int, Assoc, String)]
1818
1919table :: OpTable
20−table = [ (9, R, ".")
20+table = [ (9, R, "."), (9, R, "<<"), (9, L, ">>")
2121 , (8, R, "^")
2222 , (7, L, "*"), (7, L, "/"), (7, L, "mod"), (7, L, "div"), (7, L, "rem")
2323 , (6, L, "+"), (6, L, "-")
@@ -28,6 +28,7 @@ table = [ (9, R, ".")
2828 , (3, R, "&&")
2929 , (2, R, "||")
3030 , (0, R, "$")
31+ , (0, R, "<|"), (0, L, "|>")
3132 ]
3233
3334opLevel op = Map.findWithDefault 9 op dict