Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nofib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
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
nofib
Commits
fab904fd
Commit
fab904fd
authored
Aug 31, 2001
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2001-08-31 08:43:55 by simonmar]
Add an (Ord a) context on an Ix instance which is required now.
parent
138c68ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
real/hidden/Memo.hs
real/hidden/Memo.hs
+1
-1
No files found.
real/hidden/Memo.hs
View file @
fab904fd
...
...
@@ -8,7 +8,7 @@ import Array
data
Triangle
a
=
a
:^
a
deriving
(
Eq
,
Ord
,
{-1.3-}
Show
)
instance
(
Enum
a
,
Ix
a
)
=>
Ix
(
Triangle
a
)
where
instance
(
Enum
a
,
Ord
a
,
Ix
a
)
=>
Ix
(
Triangle
a
)
where
range
(
t0
:^
b0
,
t1
:^
b1
)
=
[
t
:^
b
|
t
<-
[
t0
..
t1
]
,
b
<-
take
(
1
+
index
(
t0
,
t1
)
t
)
[
b0
..
]
...
...
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