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,327
Issues
4,327
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
363
Merge Requests
363
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
7440ff20
Commit
7440ff20
authored
Mar 08, 2013
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://darcs.haskell.org/testsuite
parents
3a4200f2
0edf9ca3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
4 deletions
+50
-4
testsuite/tests/deriving/should_compile/AutoDeriveTypeable.hs
...suite/tests/deriving/should_compile/AutoDeriveTypeable.hs
+16
-0
testsuite/tests/deriving/should_compile/T7704.hs
testsuite/tests/deriving/should_compile/T7704.hs
+27
-0
testsuite/tests/deriving/should_compile/all.T
testsuite/tests/deriving/should_compile/all.T
+4
-1
testsuite/tests/deriving/should_fail/T2604.stderr
testsuite/tests/deriving/should_fail/T2604.stderr
+2
-2
testsuite/tests/plugins/Makefile
testsuite/tests/plugins/Makefile
+1
-1
No files found.
testsuite/tests/deriving/should_compile/AutoDeriveTypeable.hs
0 → 100644
View file @
7440ff20
{-# LANGUAGE AutoDeriveTypeable #-}
{-# LANGUAGE StandaloneDeriving #-}
module
AutoDeriveTypeable
where
import
Data.Typeable
data
A
=
A
data
B
=
B
deriving
Typeable
data
C
=
C
deriving
instance
Typeable
C
test
=
[
typeRep
[
A
],
typeRep
[
B
],
typeRep
[
C
]]
testsuite/tests/deriving/should_compile/T7704.hs
0 → 100644
View file @
7440ff20
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE StandaloneDeriving #-}
module
T7704
where
import
Data.Typeable
data
A1
=
A1
deriving
Typeable
data
A2
=
A2
deriving
instance
Typeable
A2
data
B1
a
=
B1
deriving
Typeable
data
B2
a
=
B2
deriving
instance
Typeable
B2
data
C1
a
=
C1
deriving
Typeable
data
C2
a
=
C2
deriving
instance
Typeable
C2
data
D1
f
=
D1
(
f
(
D1
f
))
deriving
Typeable
data
D2
f
=
D2
(
f
(
D2
f
))
deriving
instance
Typeable
D2
data
E1
(
a
::
k
)
f
=
E1
(
f
Int
)
deriving
Typeable
data
E2
(
a
::
k
)
f
=
E2
(
f
Int
)
deriving
instance
Typeable
E2
testsuite/tests/deriving/should_compile/all.T
View file @
7440ff20
...
...
@@ -36,4 +36,7 @@ test('T1133',
extra_clean
(['
T1133.o-boot
',
'
T1133.hi-boot
']),
run_command
,
['
$MAKE --no-print-directory -s T1133
'])
test
('
T7710
',
normal
,
compile
,
[''])
\ No newline at end of file
test
('
T7704
',
normal
,
compile
,
[''])
test
('
T7710
',
normal
,
compile
,
[''])
test
('
AutoDeriveTypeable
',
normal
,
compile
,
[''])
\ No newline at end of file
testsuite/tests/deriving/should_fail/T2604.stderr
View file @
7440ff20
T2604.hs:7:35:
Can't make a derived instance of ‛Typeable *
(DList a)
’:
Can't make a derived instance of ‛Typeable *
DList
’:
You need -XDeriveDataTypeable to derive an instance for this class
In the data declaration for ‛DList’
T2604.hs:9:38:
Can't make a derived instance of ‛Typeable *
(NList a)
’:
Can't make a derived instance of ‛Typeable *
NList
’:
You need -XDeriveDataTypeable to derive an instance for this class
In the newtype declaration for ‛NList’
testsuite/tests/plugins/Makefile
View file @
7440ff20
...
...
@@ -5,6 +5,6 @@ include $(TOP)/mk/test.mk
.PHONY
:
plugins01
plugins01
:
"
$(TEST_HC)
"
$(HC_OPTS)
--make
-v0
plugins01.hs
-package-db
simple-plugin/pkg.plugins01/local.package.conf
-fplugin
Simple.Plugin
-fplugin-opt
Simple.Plugin:Irrelevant_Option
-package
simple-plugin
"
$(TEST_HC)
"
$(
TEST_
HC_OPTS)
--make
-v0
plugins01.hs
-package-db
simple-plugin/pkg.plugins01/local.package.conf
-fplugin
Simple.Plugin
-fplugin-opt
Simple.Plugin:Irrelevant_Option
-package
simple-plugin
./plugins01
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