shithub: MicroHs

ref: 685504706c3d19711850206392ba5ff882b72ed6
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