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
GHC
Commits
c85a85fd
Commit
c85a85fd
authored
Jun 08, 2012
by
Simon Peyton Jones
Browse files
Test Trac
#6088
parent
16005083
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/indexed-types/should_compile/T6088.hs
0 → 100644
View file @
c85a85fd
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE EmptyDataDecls #-}
module
T6088
where
class
C
a
newtype
A
n
=
A
Int
type
family
Pos
n
data
True
instance
(
Pos
n
~
True
)
=>
C
(
A
n
)
newtype
B
n
=
B
(
A
n
)
deriving
(
C
)
-- This should work, giving
-- instance (Pos n ~ True) => C (B n)
testsuite/tests/indexed-types/should_compile/all.T
View file @
c85a85fd
...
...
@@ -188,3 +188,5 @@ test('T5955',
extra_clean
(['
T5955.o
',
'
T5955.hi
',
'
T5955a.o
',
'
T5955a.hi
']),
run_command
,
['
$MAKE -s --no-print-directory T5955
'])
test
('
T6088
',
normal
,
compile
,
[''])
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