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,273
Issues
4,273
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
413
Merge Requests
413
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
f2d5b3ef
Commit
f2d5b3ef
authored
Apr 24, 2012
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://darcs.haskell.org//testsuite
Conflicts: tests/typecheck/should_fail/all.T
parents
f0821355
7f3a9de1
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
76 additions
and
14 deletions
+76
-14
testsuite/tests/perf/compiler/T3064.hs
testsuite/tests/perf/compiler/T3064.hs
+3
-2
testsuite/tests/perf/compiler/all.T
testsuite/tests/perf/compiler/all.T
+5
-5
testsuite/tests/polykinds/T5716a.hs
testsuite/tests/polykinds/T5716a.hs
+11
-0
testsuite/tests/polykinds/T5716a.stderr
testsuite/tests/polykinds/T5716a.stderr
+4
-0
testsuite/tests/polykinds/T5938.hs
testsuite/tests/polykinds/T5938.hs
+7
-7
testsuite/tests/polykinds/all.T
testsuite/tests/polykinds/all.T
+3
-0
testsuite/tests/simplCore/should_run/T5920.hs
testsuite/tests/simplCore/should_run/T5920.hs
+10
-0
testsuite/tests/simplCore/should_run/T5920.stdout
testsuite/tests/simplCore/should_run/T5920.stdout
+1
-0
testsuite/tests/simplCore/should_run/all.T
testsuite/tests/simplCore/should_run/all.T
+1
-0
testsuite/tests/typecheck/should_fail/T5853.hs
testsuite/tests/typecheck/should_fail/T5853.hs
+16
-0
testsuite/tests/typecheck/should_fail/T5853.stderr
testsuite/tests/typecheck/should_fail/T5853.stderr
+14
-0
testsuite/tests/typecheck/should_fail/all.T
testsuite/tests/typecheck/should_fail/all.T
+1
-0
No files found.
testsuite/tests/perf/compiler/T3064.hs
View file @
f2d5b3ef
...
...
@@ -58,16 +58,18 @@ runCtxM action = runReaderT (unResourceT action) Ctx
-- test13 = runCA(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(
-- newRgn(newRgn(newRgn(newRgn(return()))))))))))))
{-
test14 :: IO ()
test14 = runCA(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(
newRgn(newRgn(newRgn(newRgn(return())))))))))))))
{-
test28 :: IO ()
test28 = runCA(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(
newRgn(newRgn(newRgn(newRgn(
newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(
newRgn(newRgn(newRgn(newRgn(return())))))))))))))))))))))))))
-}
test56
::
IO
()
test56
=
runCA
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
...
...
@@ -78,4 +80,3 @@ test56 = runCA(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(newRgn(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
newRgn
(
return
()
)))))))))))))))))))))))))))))))))))))))))))))))))
-}
testsuite/tests/perf/compiler/all.T
View file @
f2d5b3ef
...
...
@@ -129,22 +129,22 @@ test('T3064',
compiler_stats_num_field
('
peak_megabytes_allocated
',
7
,
12
)),
# expected value: 18 (amd64/Linux):
if_wordsize
(
64
,
compiler_stats_num_field
('
peak_megabytes_allocated
',
9
,
16
)),
compiler_stats_num_field
('
peak_megabytes_allocated
',
30
,
38
)),
# expected value: 56380288 (x86/Linux) (28/6/2011)
if_wordsize
(
32
,
compiler_stats_range_field
('
bytes allocated
',
39800820
,
10
)),
# expected value: 73259544 (amd64/Linux) (28/6/2011):
if_wordsize
(
64
,
compiler_stats_num_field
('
bytes allocated
',
6
0000000
,
80000000
)),
compiler_stats_num_field
('
bytes allocated
',
20
0000000
,
2
80000000
)),
# expected value: 2247016 (x86/Linux) (28/6/2011):
if_wordsize
(
32
,
compiler_stats_num_field
('
max_bytes_used
',
2000000
,
3000000
)),
# expected value: 4032024 (amd64/Linux, intree) (28/6/2011):
if_wordsize
(
64
,
compiler_stats_num_field
('
max_bytes_used
',
3
000000
,
5
000000
)),
compiler_stats_num_field
('
max_bytes_used
',
10
000000
,
14
000000
)),
only_ways
(['
normal
'])
],
compile
,
...
...
testsuite/tests/polykinds/T5716a.hs
0 → 100644
View file @
f2d5b3ef
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE DataKinds #-}
module
T5716a
where
data
family
DF
a
data
instance
DF
a
=
Bar
(
Bar
a
)
testsuite/tests/polykinds/T5716a.stderr
0 → 100644
View file @
f2d5b3ef
T5716a.hs:10:1:
Cycle in type declarations: data constructor used (in a type) before it is defined
T5716a.hs:10:1-32: data instance DF a = Bar (Bar a)
testsuite/tests/polykinds/T5938.hs
View file @
f2d5b3ef
{-# LANGUAGE PolyKinds, TypeFamilies, DataKinds #-}
module
T5938
where
type
family
KindFam
a
type
instance
KindFam
(
a
::
*
)
=
Int
type
instance
KindFam
(
a
::
Bool
)
=
Bool
type
instance
KindFam
(
a
::
Maybe
k
)
=
Char
-- doesn't work
{-# LANGUAGE PolyKinds, TypeFamilies, DataKinds #-}
module
T5938
where
type
family
KindFam
a
type
instance
KindFam
(
a
::
*
)
=
Int
type
instance
KindFam
(
a
::
Bool
)
=
Bool
type
instance
KindFam
(
a
::
Maybe
k
)
=
Char
-- doesn't work
testsuite/tests/polykinds/all.T
View file @
f2d5b3ef
...
...
@@ -29,8 +29,11 @@ test('T5862', normal, compile, [''])
test
('
T5912
',
normal
,
compile
,
[''])
test
('
T5881
',
normal
,
run_command
,
['
$MAKE -s --no-print-directory T5881
'])
test
('
T5716
',
normal
,
compile_fail
,
[''])
test
('
T5716a
',
normal
,
compile_fail
,
[''])
test
('
T5937
',
normal
,
compile
,
[''])
test
('
T5935
',
normal
,
compile
,
[''])
test
('
T5938
',
normal
,
compile
,
[''])
test
('
T5948
',
normal
,
compile
,
[''])
test
('
T6020
',
normal
,
compile
,
[''])
test
('
T6035
',
normal
,
compile
,
[''])
test
('
T6036
',
normal
,
compile
,
[''])
testsuite/tests/simplCore/should_run/T5920.hs
0 → 100644
View file @
f2d5b3ef
module
Main
where
-- Stack overflow if the tail recursion does not work
goInt
::
Integer
->
Integer
->
Int
goInt
500
100000
=
0
goInt
x
100000
=
goInt
(
x
+
1
)
1
goInt
x
y
=
goInt
x
(
y
+
1
)
main
=
print
$
goInt
1
1
testsuite/tests/simplCore/should_run/T5920.stdout
0 → 100644
View file @
f2d5b3ef
0
testsuite/tests/simplCore/should_run/all.T
View file @
f2d5b3ef
...
...
@@ -54,3 +54,4 @@ test('T5603', normal, compile_and_run, [''])
test
('
T5625
',
[
only_ways
(['
normal
','
optasm
']),
exit_code
(
1
)
],
compile_and_run
,
[''])
test
('
T5587
',
[
only_ways
(['
normal
','
optasm
']),
exit_code
(
1
)
],
compile_and_run
,
[''])
test
('
T5915
',
only_ways
(['
normal
','
optasm
']),
compile_and_run
,
[''])
test
('
T5920
',
only_ways
(['
normal
','
optasm
']),
compile_and_run
,
[''])
testsuite/tests/typecheck/should_fail/T5853.hs
0 → 100644
View file @
f2d5b3ef
{-# LANGUAGE NoImplicitPrelude, TypeFamilies #-}
module
T5853
where
import
Prelude
(
undefined
,
Bool
(
..
),
Show
(
..
),(
.
))
type
family
Elem
f
::
*
type
family
Subst
f
b
::
*
class
(
Subst
fa
(
Elem
fa
)
~
fa
)
=>
F
fa
where
(
<$>
)
::
(
Elem
fa
~
a
,
Elem
fb
~
b
,
Subst
fa
b
~
fb
,
Subst
fb
a
~
fa
)
=>
(
a
->
b
)
->
(
fa
->
fb
)
{-# RULES
"map/map" forall f g xs. f <$> (g <$> xs) = (f.g) <$> xs
#-}
testsuite/tests/typecheck/should_fail/T5853.stderr
0 → 100644
View file @
f2d5b3ef
T5853.hs:15:52:
Could not deduce (fb ~ Subst fa1 (Elem fb))
from the context (F fa,
Subst fa (Elem fb) ~ fb,
Subst fb (Elem fa) ~ fa,
F fa1,
Subst fa1 (Elem fa) ~ fa,
Subst fa (Elem fa1) ~ fa1)
bound by the RULE "map/map" at T5853.hs:15:2-57
`fb' is a rigid type variable bound by
the RULE "map/map" at T5853.hs:15:2
In the expression: (f . g) <$> xs
When checking the transformation rule "map/map"
testsuite/tests/typecheck/should_fail/all.T
View file @
f2d5b3ef
...
...
@@ -275,3 +275,4 @@ test('T5858', normal, compile_fail, [''])
test
('
T5957
',
normal
,
compile_fail
,
[''])
test
('
T6001
',
normal
,
compile_fail
,
[''])
test
('
T6022
',
normal
,
compile_fail
,
[''])
test
('
T5853
',
normal
,
compile_fail
,
[''])
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