packages feed

MicroHs-0.17.4.0 / tests / Infix.hs

module Infix(main) whereinfix 1 ===infixl 2 +++infixr 3 &&&(===) :: Int -> Int -> Boolx === y = x == y+1(+++) :: Int -> Int -> Inta +++ b = a + b + 1(&&&) :: Int -> Int -> Inta &&& b = a * (b + 1)main :: IO ()main = do  print $ 2 +++ 3 &&& 4 === 17