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
Glasgow Haskell Compiler
nofib
Commits
847309dd
Commit
847309dd
authored
May 19, 1997
by
sof
Browse files
[project @ 1997-05-19 00:30:06 by sof]
Polymorphic recursion tst
parent
8855b562
Changes
3
Hide whitespace changes
Inline
Side-by-side
GHC_ONLY/frontend004/Main.hs
0 → 100644
View file @
847309dd
{- This module tests that we can ge polymorphic recursion
of overloaded functions. GHC 2.02 produced the following
bogus error:
tmp.lhs:1: A group of type signatures have mismatched contexts
Abf.a :: (PrelBase.Ord f{-aX6-}) => ...
Abf.b :: (PrelBase.Ord f{-aX2-}) => ...
This was due to having more than one type signature for one
group of recursive functions.
-}
module
Main
(
main
)
where
a
::
(
Ord
f
)
=>
f
a
=
b
b
::
(
Ord
f
)
=>
f
b
=
a
main
=
putStrLn
"OK"
GHC_ONLY/frontend004/Makefile
0 → 100644
View file @
847309dd
TOP
=
../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/target.mk
GHC_ONLY/frontend004/frontend004.stdout
0 → 100644
View file @
847309dd
OK
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