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,246
Issues
4,246
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
396
Merge Requests
396
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
65b737fa
Commit
65b737fa
authored
Aug 24, 2013
by
Herbert Valerio Riedel
🕺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add regression test for
#8113
Depends on fix in
3229eadb
to pass
parent
77210ada
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
0 deletions
+40
-0
testsuite/tests/ghci/scripts/T8113.script
testsuite/tests/ghci/scripts/T8113.script
+18
-0
testsuite/tests/ghci/scripts/T8113.stdout
testsuite/tests/ghci/scripts/T8113.stdout
+21
-0
testsuite/tests/ghci/scripts/all.T
testsuite/tests/ghci/scripts/all.T
+1
-0
No files found.
testsuite/tests/ghci/scripts/T8113.script
0 → 100644
View file @
65b737fa
:def type (\e -> putStrLn ("called :type for "++show e++" (ignoring)") >> return "")
:def
:t ()
:ty True
:typ ()
:type False
:def! type (\e -> putStrLn ("called :type for "++show e++" (chaining)") >> return ("::type "++e))
:def
:t ()
:ty True
:typ ()
:type False
:undef type
:def
:t ()
:ty True
:typ ()
:type False
testsuite/tests/ghci/scripts/T8113.stdout
0 → 100644
View file @
65b737fa
the following macros are defined:
type
called :type for "()" (ignoring)
called :type for "True" (ignoring)
called :type for "()" (ignoring)
called :type for "False" (ignoring)
the following macros are defined:
type
called :type for "()" (chaining)
() :: ()
called :type for "True" (chaining)
True :: Bool
called :type for "()" (chaining)
() :: ()
called :type for "False" (chaining)
False :: Bool
no macros defined
() :: ()
True :: Bool
() :: ()
False :: Bool
testsuite/tests/ghci/scripts/all.T
View file @
65b737fa
...
...
@@ -152,3 +152,4 @@ test('T7873', normal, ghci_script, ['T7873.script'])
test
('
T7939
',
normal
,
ghci_script
,
['
T7939.script
'])
test
('
T7894
',
normal
,
ghci_script
,
['
T7894.script
'])
test
('
T8116
',
normal
,
ghci_script
,
['
T8116.script
'])
test
('
T8113
',
normal
,
ghci_script
,
['
T8113.script
'])
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