Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
dph
Commits
baae8e60
Commit
baae8e60
authored
Jul 18, 2007
by
rl@cse.unsw.edu.au
Browse files
Add temporary PA instances for Int
parent
f0c619ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Data/Array/Parallel/Lifted/Instances.hs
View file @
baae8e60
...
...
@@ -2,8 +2,17 @@ module Data.Array.Parallel.Lifted.Instances
where
import
Data.Array.Parallel.Lifted.PArray
import
Data.Array.Parallel.Unlifted
(
UArr
,
replicateU
)
import
GHC.Exts
(
Int
#
)
import
GHC.Exts
(
Int
#
,
Int
(
..
))
data
instance
PArray
Int
=
PInt
Int
#
!
(
UArr
Int
)
instance
PA
Int
where
{-# INLINE lengthPA #-}
lengthPA
(
PInt
n
_
)
=
n
{-# INLINE replicatePA #-}
replicatePA
n
i
=
PInt
n
(
replicateU
(
I
#
n
)
i
)
data
instance
PArray
()
=
PUnit
Int
#
()
...
...
Write
Preview
Supports
Markdown
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