Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
array
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vladislav Zavialov
array
Commits
c2b7f0f1
Commit
c2b7f0f1
authored
17 years ago
by
Malcolm.Wallace@cs.york.ac.uk
Browse files
Options
Downloads
Patches
Plain Diff
(partially) build array package with nhc98
parent
592e8d18
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Data/Array.hs
+2
-1
2 additions, 1 deletion
Data/Array.hs
Makefile.nhc98
+20
-0
20 additions, 0 deletions
Makefile.nhc98
with
22 additions
and
1 deletion
Data/Array.hs
+
2
−
1
View file @
c2b7f0f1
...
@@ -69,7 +69,7 @@ import Hugs.Array
...
@@ -69,7 +69,7 @@ import Hugs.Array
#
ifdef
__NHC__
#
ifdef
__NHC__
import
Array
-- Haskell'98 arrays
import
Array
-- Haskell'98 arrays
#
e
ndif
#
e
lse
import
Control.Applicative
import
Control.Applicative
import
Data.Foldable
import
Data.Foldable
...
@@ -95,3 +95,4 @@ instance Ix i => Foldable (Array i) where
...
@@ -95,3 +95,4 @@ instance Ix i => Foldable (Array i) where
instance
Ix
i
=>
Traversable
(
Array
i
)
where
instance
Ix
i
=>
Traversable
(
Array
i
)
where
traverse
f
arr
=
listArray
(
bounds
arr
)
<$>
traverse
f
(
elems
arr
)
traverse
f
arr
=
listArray
(
bounds
arr
)
<$>
traverse
f
(
elems
arr
)
#
endif
This diff is collapsed.
Click to expand it.
Makefile.nhc98
0 → 100644
+
20
−
0
View file @
c2b7f0f1
THISPKG
=
array
SEARCH
=
EXTRA_H_FLAGS
=
EXTRA_HBC_FLAGS
=
DIRS
=
\
Data Data/Array
SRCS
=
\
Data/Array.hs
# Here are the main rules.
include
../Makefile.common
# some extra rules
# Here are any extra dependencies.
# C-files dependencies.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment