shithub: MicroHs

ref: 56be300c293304b37cb18db499d825621be9ec4d
dir: /tests/LocalFix.hs/

View raw version
module LocalFix where

main :: IO ()
main = do
  let
    (.-) :: Int -> Int -> Int
    (.-) = (-)
    x = 1 .- 2 .- 3
  print x
  let
    infixr .-
    (.-) :: Int -> Int -> Int
    (.-) = (-)
    x = 1 .- 2 .- 3
  print x