shithub: MicroHs

ref: b4a7a0d4c04ad0fb96d0b279d35da2658d58a0e1
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