Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,309
Issues
4,309
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
383
Merge Requests
383
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d7f2ab05
Commit
d7f2ab05
authored
Sep 19, 2015
by
eir@cis.upenn.edu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test
#10770
parent
d19a77ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
testsuite/tests/typecheck/should_compile/T10770a.hs
testsuite/tests/typecheck/should_compile/T10770a.hs
+8
-0
testsuite/tests/typecheck/should_compile/T10770b.hs
testsuite/tests/typecheck/should_compile/T10770b.hs
+9
-0
testsuite/tests/typecheck/should_compile/all.T
testsuite/tests/typecheck/should_compile/all.T
+2
-0
No files found.
testsuite/tests/typecheck/should_compile/T10770a.hs
0 → 100644
View file @
d7f2ab05
module
T10770a
where
import
Data.Typeable
main
=
print
$
foo
$
Just
()
foo
::
Typeable
(
t
a
)
=>
t
a
->
String
foo
x
=
let
k
=
show
$
typeOf
x
in
k
testsuite/tests/typecheck/should_compile/T10770b.hs
0 → 100644
View file @
d7f2ab05
{-# LANGUAGE FlexibleContexts #-}
{-# OPTIONS_GHC -fwarn-redundant-constraints #-}
module
T10770b
where
f
::
(
Show
a
,
Show
(
Maybe
a
))
=>
Maybe
a
->
String
f
x
=
let
k
=
show
x
in
k
g
::
(
Show
a
,
Show
(
Maybe
a
))
=>
Maybe
a
->
String
g
x
=
show
x
testsuite/tests/typecheck/should_compile/all.T
View file @
d7f2ab05
...
...
@@ -475,3 +475,5 @@ test('T10642', normal, compile, [''])
test
('
T10744
',
normal
,
compile
,
[''])
test
('
update-existential
',
normal
,
compile
,
[''])
test
('
T10347
',
expect_broken
(
10347
),
compile
,
[''])
test
('
T10770a
',
expect_broken
(
10770
),
compile
,
[''])
test
('
T10770b
',
expect_broken
(
10770
),
compile
,
[''])
Write
Preview
Markdown
is supported
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