Skip to content
GitLab
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
a4c79e3e
Commit
a4c79e3e
authored
Nov 20, 2013
by
Joachim Breitner
Browse files
Type function application has its own depth counter now
parent
7055a16c
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/indexed-types/should_fail/SkolemOccursLoop.hs
View file @
a4c79e3e
{-# OPTIONS_GHC -f
context-stack
=3 #-}
{-# OPTIONS_GHC -f
type-function-depth
=3 #-}
{-# LANGUAGE TypeFamilies, FlexibleContexts, EmptyDataDecls #-}
module
SkolemOccursLoop
where
...
...
testsuite/tests/typecheck/should_fail/ContextStack2.stderr
View file @
a4c79e3e
ContextStack2.hs:8:6:
Context reduc
tion stack overflow; size = 11
Use -f
context-stack
=N to increase stack size to N
Type function applica
tion stack overflow; size = 11
Use -f
type-function-depth
=N to increase stack size to N
(TF (TF (TF (TF (TF (TF (TF (TF (TF (TF (TF a)))))))))),
TF (TF (TF (TF (TF (TF (TF (TF (TF (TF (TF Int)))))))))))
~ TF (TF (TF (TF (TF (TF (TF (TF (TF (TF a)))))))))
...
...
testsuite/tests/typecheck/should_fail/all.T
View file @
a4c79e3e
...
...
@@ -326,4 +326,4 @@ test('T8428', normal, compile_fail, [''])
test
('
T8450
',
normal
,
compile_fail
,
[''])
test
('
T8514
',
normal
,
compile_fail
,
[''])
test
('
ContextStack1
',
normal
,
compile_fail
,
['
-fcontext-stack=10
'])
test
('
ContextStack2
',
normal
,
compile_fail
,
['
-f
context-stack
=10
'])
test
('
ContextStack2
',
normal
,
compile_fail
,
['
-f
type-function-depth
=10
'])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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