[project @ 1996-06-05 06:44:31 by partain]
[ghc-hetmet.git] / ghc / compiler / prelude / PrelMods.lhs
index 17bef6a..da5b711 100644 (file)
@@ -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}