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,252
Issues
4,252
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
397
Merge Requests
397
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
cb692c50
Commit
cb692c50
authored
Jul 27, 2011
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac
#5342
parent
9d799482
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
testsuite/tests/simplCore/should_compile/T5342.hs
testsuite/tests/simplCore/should_compile/T5342.hs
+18
-0
testsuite/tests/simplCore/should_compile/all.T
testsuite/tests/simplCore/should_compile/all.T
+1
-0
No files found.
testsuite/tests/simplCore/should_compile/T5342.hs
0 → 100644
View file @
cb692c50
module
T5342
(
increaseAreas
)
where
import
Control.Monad
import
Data.List
nubSorted
::
Eq
a
=>
[
a
]
->
[
a
]
nubSorted
=
undefined
cellsAround
::
(
Num
a
,
Num
b
,
Ord
a
,
Ord
b
)
=>
[(
a
,
b
)]
->
[(
a
,
b
)]
cellsAround
=
undefined
increaseAreas
::
(
Num
a
,
Num
b
,
Ord
a
,
Ord
b
)
=>
[[(
a
,
b
)]]
->
[[(
a
,
b
)]]
increaseAreas
areas
=
nubSorted
$
sort
$
do
area
<-
areas
cell2
<-
cellsAround
area
return
$
sort
$
cell2
:
area
testsuite/tests/simplCore/should_compile/all.T
View file @
cb692c50
...
...
@@ -124,3 +124,4 @@ test('T5168',
test
('
T5329
',
normal
,
compile
,
[''])
test
('
T5303
',
reqlib
('
mtl
'),
compile
,
[''])
# Coercion-optimiation test
test
('
T5342
',
normal
,
compile
,
[''])
# Lint error with -prof
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