summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T14828.script
blob: d8eea69b7cb17128e63d5ee403e3ed048b563166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
:t foldl
:print foldl

:t fmap
:print fmap

:t return
:print return

:t pure
:print pure

:m + Data.Monoid
:p mempty
:p mappend

:set -Wno-compat-unqualified-imports
:m + Data.List
:p foldl'

:set -XRankNTypes
f :: (forall a. a -> a) -> b -> b; f g x = g x
:p f