shithub: MicroHs

ref: 6ee5b5e8428ca78ea1d5a675fb34ccc5b36ef680
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)