shithub: MicroHs

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