Changeset 4915 for src/Main.hs
- Timestamp:
- 06/22/05 21:02:52 (4 years ago)
- svk:copy_cache_prev:
- 6641
- Files:
-
- 1 modified
-
src/Main.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Main.hs
r4914 r4915 324 324 expandInc :: [FilePath] -> String -> IO String 325 325 expandInc incs str = case breakOnGlue "\nuse " str of 326 Nothing -> return str 326 Nothing -> case breakOnGlue "\nrequire " str of 327 Nothing -> return str 328 Just (pre, post) -> do 329 let (mod, (_:rest)) = span (/= ';') (dropWhile isSpace post) 330 mod' <- includeInc incs mod 331 rest' <- expandInc incs rest 332 return $ pre ++ mod' ++ rest' 327 333 Just (pre, post) -> do 328 334 let (mod, (_:rest)) = span isAlphaNum (dropWhile isSpace post)
