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,322
Issues
4,322
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
366
Merge Requests
366
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
44328639
Commit
44328639
authored
May 12, 2015
by
David Terei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update some tests for recent Safe Haskell change.
parent
1b476920
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
testsuite/tests/ghci/scripts/T5820.stdout
testsuite/tests/ghci/scripts/T5820.stdout
+2
-2
testsuite/tests/ghci/scripts/ghci019.stdout
testsuite/tests/ghci/scripts/ghci019.stdout
+2
-2
testsuite/tests/ghci/scripts/ghci044.stderr
testsuite/tests/ghci/scripts/ghci044.stderr
+3
-3
testsuite/tests/typecheck/should_compile/T4912.stderr
testsuite/tests/typecheck/should_compile/T4912.stderr
+4
-4
testsuite/tests/warnings/should_compile/T9178.stderr
testsuite/tests/warnings/should_compile/T9178.stderr
+2
-2
No files found.
testsuite/tests/ghci/scripts/T5820.stdout
View file @
44328639
data Foo = Foo -- Defined at T5820.hs:2:1
instance Eq Foo -- Defined at T5820.hs:3:10
instance
[safe]
Eq Foo -- Defined at T5820.hs:3:10
data Foo = Foo -- Defined at T5820.hs:2:1
instance Eq Foo -- Defined at T5820.hs:3:10
instance
[safe]
Eq Foo -- Defined at T5820.hs:3:10
testsuite/tests/ghci/scripts/ghci019.stdout
View file @
44328639
data Foo = Foo -- Defined at ghci019.hs:8:1
instance
Eq Foo -- Defined at ghci019.hs:9:10
data Foo = Foo -- Defined at ghci019.hs:8:1
instance
[safe] Eq Foo -- Defined at ghci019.hs:9:10
testsuite/tests/ghci/scripts/ghci044.stderr
View file @
44328639
<interactive>:10:1:
<interactive>:10:1:
error:
Overlapping instances for C [Int] arising from a use of ‘f’
Matching instances:
instance C [Int] -- Defined at <interactive>:7:10
instance C a => C [a] -- Defined at <interactive>:9:10
instance
[safe]
C [Int] -- Defined at <interactive>:7:10
instance
[safe]
C a => C [a] -- Defined at <interactive>:9:10
In the expression: f [4 :: Int]
In an equation for ‘it’: it = f [4 :: Int]
testsuite/tests/typecheck/should_compile/T4912.stderr
View file @
44328639
T4912.hs:10:10:
W
arning:
Orphan instance: instance Foo TheirData
T4912.hs:10:10:
w
arning:
Orphan instance: instance
[safe]
Foo TheirData
To avoid this
move the instance declaration to the module of the class or of the type, or
wrap the type with a newtype and declare the instance on the new type.
T4912.hs:13:10:
W
arning:
Orphan instance: instance Bar OurData
T4912.hs:13:10:
w
arning:
Orphan instance: instance
[safe]
Bar OurData
To avoid this
move the instance declaration to the module of the class or of the type, or
wrap the type with a newtype and declare the instance on the new type.
testsuite/tests/warnings/should_compile/T9178.stderr
View file @
44328639
[1 of 2] Compiling T9178DataType ( T9178DataType.hs, T9178DataType.o )
[2 of 2] Compiling T9178 ( T9178.hs, T9178.o )
T9178.hs:8:10:
W
arning:
Orphan instance: instance Show T9178_Type
T9178.hs:8:10:
w
arning:
Orphan instance: instance
[safe]
Show T9178_Type
To avoid this
move the instance declaration to the module of the class or of the type, or
wrap the type with a newtype and declare the instance on the new type.
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