shithub: MicroHs

ref: c101325aaf8ed0ec3c8c4ff4b7d425bba799825a
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)