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,323
Issues
4,323
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
367
Merge Requests
367
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
a9ccd37a
Commit
a9ccd37a
authored
May 13, 2015
by
Simon Peyton Jones
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac
#10403
parent
c0aae6f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
+37
-0
testsuite/tests/partial-sigs/should_compile/T10403.hs
testsuite/tests/partial-sigs/should_compile/T10403.hs
+19
-0
testsuite/tests/partial-sigs/should_compile/T10403.stderr
testsuite/tests/partial-sigs/should_compile/T10403.stderr
+17
-0
testsuite/tests/partial-sigs/should_compile/all.T
testsuite/tests/partial-sigs/should_compile/all.T
+1
-0
No files found.
testsuite/tests/partial-sigs/should_compile/T10403.hs
0 → 100644
View file @
a9ccd37a
{-# LANGUAGE PartialTypeSignatures #-}
module
T10403
where
data
I
a
=
I
a
instance
Functor
I
where
fmap
f
(
I
a
)
=
I
(
f
a
)
newtype
B
t
a
=
B
a
instance
Functor
(
B
t
)
where
fmap
f
(
B
a
)
=
B
(
f
a
)
newtype
H
f
=
H
(
f
()
)
app
::
H
(
B
t
)
app
=
h
(
H
.
I
)
(
B
()
)
h
::
_
=>
_
--h :: Functor m => (a -> b) -> m a -> H m
h
f
b
=
(
H
.
fmap
(
const
()
))
(
fmap
f
b
)
testsuite/tests/partial-sigs/should_compile/T10403.stderr
0 → 100644
View file @
a9ccd37a
T10403.hs:17:6: warning:
Found hole ‘_’ with inferred constraints: Functor f
In the type signature for ‘h’: _ => _
T10403.hs:17:11: warning:
Found hole ‘_’ with type: (a -> b) -> f a -> H f
Where: ‘f’ is a rigid type variable bound by
the inferred type of h :: Functor f => (a -> b) -> f a -> H f
at T10403.hs:19:1
‘b’ is a rigid type variable bound by
the inferred type of h :: Functor f => (a -> b) -> f a -> H f
at T10403.hs:19:1
‘a’ is a rigid type variable bound by
the inferred type of h :: Functor f => (a -> b) -> f a -> H f
at T10403.hs:19:1
In the type signature for ‘h’: _ => _
testsuite/tests/partial-sigs/should_compile/all.T
View file @
a9ccd37a
...
...
@@ -46,3 +46,4 @@ test('SomethingShowable', normal, compile, ['-ddump-types -fno-warn-partial-type
test
('
Uncurry
',
normal
,
compile
,
['
-ddump-types -fno-warn-partial-type-signatures
'])
test
('
UncurryNamed
',
normal
,
compile
,
['
-ddump-types -fno-warn-partial-type-signatures
'])
test
('
WarningWildcardInstantiations
',
normal
,
compile
,
['
-ddump-types
'])
test
('
T10403
',
normal
,
compile
,
[''])
Ben Gamari
🐢
@bgamari
mentioned in commit
3cf8ecdc
·
May 14, 2015
mentioned in commit
3cf8ecdc
mentioned in commit 3cf8ecdc70cb295a2b9606080a1c7b5fa8eb16f4
Toggle commit list
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