blob: 2e1a93bd981dc68013a7288c3cd61b23bad70015 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{-# LANGUAGE RankNTypes #-}
module Polymorphism where
foo :: a -> a -> a
foo = undefined
foo' :: forall a. a -> a -> a
foo' = undefined
bar :: a -> b -> (a, b)
bar = undefined
bar' :: forall a b. a -> b -> (a, b)
bar' = undefined
baz :: a -> (a -> [a -> a] -> b) -> b
baz = undefined
baz' :: forall a b. a -> (a -> [a -> a] -> b) -> b
baz' = undefined
quux :: a -> (forall a. a -> a) -> a
quux = undefined
quux' :: forall a. a -> (forall a. a -> a) -> a
quux' = undefined
num :: Num a => a -> a -> a
num = undefined
num' :: forall a. Num a => a -> a -> a
num' = undefined
eq :: (Eq a, Eq b) => [a] -> [b] -> (a, b)
eq = undefined
eq' :: forall a b. (Eq a, Eq b) => [a] -> [b] -> (a, b)
eq' = undefined
mon :: Monad m => (a -> m a) -> m a
mon = undefined
mon' :: forall m a. Monad m => (a -> m a) -> m a
mon' = undefined
norf :: a -> (forall a. Ord a => a -> a) -> a
norf = undefined
norf' :: forall a. a -> (forall a. Ord a => a -> a) -> a
norf' = undefined
|