[Solved] How to remove parentheses in function call usage?

(<-<) :: Int -> IO ()
(<-<) = print

main :: IO ()
main = do
  (<-<) 1  -- works
  <-< 1    -- does not work

Parentheses bother me and make things look unattractive. Is there a way to achieve the same result without using parentheses? Thank you.

No, you can’t call an operator in prefix form without parentheses.

3 Likes

Got it. Thank you :slight_smile: