shithub: MicroHs

ref: 2bcb05a5abfb65ab2779e4418df2cd33415a646c
dir: /tests/LocalPoly.hs/

View raw version
module LocalPoly(main) where
import Prelude

main :: IO ()
main = do
  putStrLn $ showPair (showPair showInt showString) (showPair showString showString) $ f 1 "a"

f :: forall b . Int -> b -> ((Int, b), (b, b))
f x b = (i x, i b)
  where
    i :: forall a . a -> (a, b)
    i a = (a, b)