shithub: MicroHs

ref: 91e9f75a474f70cd0d1cb39a316ba5078865c56e
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)