shithub: MicroHs

ref: 5bcc30b7813a7bd15717f44d57cfb0dcbab3c87e
dir: /tests/NoForall.hs/

View raw version
module NoForall where

-- Without an explicit forall the 'a' is not bound in the body.
f :: a -> ((a,a),(a,a))
f x =
  let g :: a -> (a,a)
      g a = (a,a)
  in  g (x,x)

main :: IO ()
main = print (f True)