Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
79034762
Commit
79034762
authored
Nov 19, 2013
by
jpm@cs.ox.ac.uk
Browse files
Include pairs in this test
parent
e43a4124
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/generics/GFunctor/GFunctor.hs
View file @
79034762
...
...
@@ -52,3 +52,4 @@ class GFunctor f where
-- Base types instances
instance
GFunctor
Maybe
instance
GFunctor
[]
instance
GFunctor
((,)
a
)
testsuite/tests/generics/GFunctor/GFunctor1.stdout
View file @
79034762
(D0,D1 {d11 = 'q', d12 = D0},D1 {d11 = 3.14, d12 = D0})
(
Just 3,[1,2,3],(0,1),
D0,D1 {d11 = 'q', d12 = D0},D1 {d11 = 3.14, d12 = D0})
testsuite/tests/generics/GFunctor/Main.hs
View file @
79034762
...
...
@@ -21,6 +21,9 @@ d2 = D1 (3,0.14) D0
instance
GFunctor
D
-- Tests
main
=
print
(
gmap
undefined
d0
::
D
()
main
=
print
(
gmap
(
+
1
)
(
Just
2
)
,
gmap
(
+
1
)
[
0
,
1
,
2
]
,
gmap
(
+
1
)
(
0
,
0
)
,
gmap
undefined
d0
::
D
()
,
gmap
(
const
'q'
)
d1
,
gmap
(
\
(
a
,
b
)
->
a
+
b
)
d2
::
D
Float
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment