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,324
Issues
4,324
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
384
Merge Requests
384
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
a0d99928
Commit
a0d99928
authored
Mar 03, 2013
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac
#7641
parent
455fbadf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
testsuite/tests/typecheck/should_compile/T7641.hs
testsuite/tests/typecheck/should_compile/T7641.hs
+14
-0
testsuite/tests/typecheck/should_compile/all.T
testsuite/tests/typecheck/should_compile/all.T
+1
-0
No files found.
testsuite/tests/typecheck/should_compile/T7641.hs
0 → 100644
View file @
a0d99928
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module
T7641
where
data
Foo
b
=
Foo
deriving
Show
class
ToFoo
a
b
where
toFoo
::
a
->
Foo
b
instance
ToFoo
(
c
->
()
)
b
where
toFoo
_
=
Foo
baz
()
=
toFoo
$
\
_
->
()
testsuite/tests/typecheck/should_compile/all.T
View file @
a0d99928
...
...
@@ -397,3 +397,4 @@ test('T7408', normal, compile, [''])
test
('
UnboxStrictPrimitiveFields
',
normal
,
compile
,
[''])
test
('
T7541
',
normal
,
compile
,
[''])
test
('
T7562
',
normal
,
compile
,
[''])
test
('
T7641
',
normal
,
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