Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
705fda4b
Commit
705fda4b
authored
Jan 06, 2006
by
simonpj
Browse files
[project @ 2006-01-06 16:14:45 by simonpj]
Better type signature for higher-rank
parent
048c91d1
Changes
1
Show whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_compile/tc191.hs
View file @
705fda4b
...
...
@@ -18,10 +18,12 @@ import Data.Generics.Twins(gzipWithQ)
geq
::
Data
a
=>
a
->
a
->
Bool
geq
x
y
=
geq'
x
y
where
geq'
::
forall
a
b
.
(
Data
a
,
Data
b
)
=>
a
->
b
->
Bool
-- This type signature no longer works, because it is
-- insufficiently polymoprhic.
-- geq' :: forall a b. (Data a, Data b) => a -> b -> Bool
geq'
::
GenericQ
(
GenericQ
Bool
)
geq'
x
y
=
(
toConstr
x
==
toConstr
y
)
&&
and
(
gzipWithQ
geq'
x
y
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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