projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the [] definion from base to ghc-prim
[ghc-hetmet.git]
/
compiler
/
utils
/
UniqFM.lhs
diff --git
a/compiler/utils/UniqFM.lhs
b/compiler/utils/UniqFM.lhs
index
61c858d
..
4081017
100644
(file)
--- a/
compiler/utils/UniqFM.lhs
+++ b/
compiler/utils/UniqFM.lhs
@@
-203,9
+203,9
@@
First, the DataType itself; which is either a Node, a Leaf, or an Empty.
\begin{code}
data UniqFM ele
= EmptyUFM
\begin{code}
data UniqFM ele
= EmptyUFM
- | LeafUFM FastInt ele
- | NodeUFM FastInt -- the switching
- FastInt -- the delta
+ | LeafUFM !FastInt ele
+ | NodeUFM !FastInt -- the switching
+ !FastInt -- the delta
(UniqFM ele)
(UniqFM ele)
-- INVARIANT: the children of a NodeUFM are never EmptyUFMs
(UniqFM ele)
(UniqFM ele)
-- INVARIANT: the children of a NodeUFM are never EmptyUFMs
@@
-698,7
+698,7
@@
insert_ele f (LeafUFM j old) i new
(indexToRoot j))
(mkLeafUFM i new)
(mkLeafUFM j old)
(indexToRoot j))
(mkLeafUFM i new)
(mkLeafUFM j old)
- | j ==# i = mkLeafUFM j $! f old new
+ | j ==# i = mkLeafUFM j $ f old new
| otherwise =
mkLLNodeUFM (getCommonNodeUFMData
(indexToRoot i)
| otherwise =
mkLLNodeUFM (getCommonNodeUFMData
(indexToRoot i)
@@
-839,7
+839,3
@@
use_snd :: a -> b -> b
use_snd _ b = b
\end{code}
use_snd _ b = b
\end{code}
-\begin{code}
-_unused :: FS.FastString
-_unused = undefined
-\end{code}