shithub: MicroHs

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