Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
obsidiansystems
GHC
Commits
fe02d521
Commit
fe02d521
authored
May 12, 2000
by
simonmar
Browse files
[project @ 2000-05-12 09:18:21 by simonmar]
versionitis: pre-4.06 GHCs didn't have PrelAddr.intToWord
parent
f2eda367
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/prelude/PrelRules.lhs
View file @
fe02d521
...
...
@@ -33,9 +33,18 @@ import ThinAir ( unpackCStringFoldrId )
import Maybes ( maybeToBool )
import Char ( ord, chr )
import Bits ( Bits(..) )
import PrelAddr (
intToWord,
wordToInt )
import PrelAddr ( wordToInt )
import Word ( Word64 )
import Outputable
#if __GLASGOW_HASKELL__ > 404
import PrelAddr ( intToWord )
#else
import PrelAddr ( Word(..) )
import PrelGHC ( int2Word# )
intToWord :: Int -> Word
intToWord (I# i#) = W# (int2Word# i#)
#endif
\end{code}
...
...
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