shithub: MicroHs

ref: e0bff6c183d9ed36fc8e16e498538265f7f263fd
dir: /tests/Bang.hs/

View raw version
module Bang where

(!) :: Int -> Int -> Int
x ! y = x - y

f :: Int -> Int
f !x = x+1

main = do
  let !a = 1+2
  print a
  print (2 ! 3)
  print (2! 3)
  print (2 !3)
  print (2!3)
  print (f 1)