projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[project @ 1996-06-05 06:44:31 by partain]
[ghc-hetmet.git]
/
ghc
/
compiler
/
prelude
/
PrelMods.lhs
diff --git
a/ghc/compiler/prelude/PrelMods.lhs
b/ghc/compiler/prelude/PrelMods.lhs
index
17bef6a
..
da5b711
100644
(file)
--- a/
ghc/compiler/prelude/PrelMods.lhs
+++ b/
ghc/compiler/prelude/PrelMods.lhs
@@
-40,4
+40,7
@@
iX = SLIT("Ix")
fromPrelude :: FAST_STRING -> Bool
fromPrelude s = (_SUBSTR_ s 0 6 == SLIT("Prelude"))
+ where
+ substr str beg end
+ = take (end - beg + 1) (drop beg str)
\end{code}