shithub: MicroHs

ref: b9f2c8f2ae01ab8a0a168fd7136e94c2eb8a7b48
dir: /tests/LocalPoly.hs/

View raw version
module LocalPoly(main) where
import Prelude

main :: IO ()
main = do
  putStrLn $ show $ f 1 ("a"::String)

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)