(<-<) :: 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.
(<-<) :: 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.
Got it. Thank you