projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29187a3
)
Moved def. of emptyP
author
keller@cse.unsw.edu.au
<unknown>
Thu, 1 May 2008 02:42:23 +0000
(
02:42
+0000)
committer
keller@cse.unsw.edu.au
<unknown>
Thu, 1 May 2008 02:42:23 +0000
(
02:42
+0000)
GHC/PArr.hs
patch
|
blob
|
history
diff --git
a/GHC/PArr.hs
b/GHC/PArr.hs
index
db53c82
..
10a4267
100644
(file)
--- a/
GHC/PArr.hs
+++ b/
GHC/PArr.hs
@@
-242,6
+242,11
@@
singletonP :: a -> [:a:]
{-# INLINE singletonP #-}
singletonP e = replicateP 1 e
+emptyP:: [:a:]
+{- NOINLINE emptyP #-}
+emptyP = replicateP 0 undefined
+
+
replicateP :: Int -> a -> [:a:]
{-# INLINE replicateP #-}
replicateP n e = runST (do
@@
-723,6
+728,3
@@
writeMPArr (MPArr n# marr#) (I# i#) e
#endif /* __HADDOCK__ */
-emptyP:: [:a:]
-{- NOINLINE emptyP #-}
-emptyP = replicateP 0 undefined
\ No newline at end of file