shithub: MicroHs

ref: 5bcc30b7813a7bd15717f44d57cfb0dcbab3c87e
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)