shithub: MicroHs

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