Changeset 17058
- Timestamp:
- 07/14/07 06:37:18 (17 months ago)
- Location:
- src
- Files:
-
- 2 modified
-
Pugs.hs (modified) (4 diffs)
-
Pugs/Run.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs.hs
r16627 r17058 39 39 import Data.IORef 40 40 import qualified Data.Map as Map 41 import System.FilePath (joinFileName, splitFileName)41 import qualified System.FilePath as FilePath (combine, splitFileName) 42 42 43 43 {-| … … 255 255 case mbin of 256 256 Just binary -> do 257 let (p, _) = splitFileName binary257 let (p, _) = FilePath.splitFileName binary 258 258 exitWith =<< executeFile' perl5 True (("-I" ++ p):binary:args) Nothing 259 _ -> fail ("Couldn't find helper program " ++ helper ++ " (searched in " ++ show (map (foldl1 joinFileName) searchPaths) ++ ")")259 _ -> fail ("Couldn't find helper program " ++ helper ++ " (searched in " ++ show (map (foldl1 FilePath.combine) searchPaths) ++ ")") 260 260 where 261 261 suffixes = … … 272 272 `mplus` findHelper xs 273 273 where 274 file = foldl1 joinFileName (x ++ [helper])274 file = foldl1 FilePath.combine (x ++ [helper]) 275 275 maybeFindFile :: FilePath -> MaybeT IO FilePath 276 276 maybeFindFile pathname = do … … 279 279 return pathname 280 280 where 281 (path, filename) = splitFileName pathname281 (path, filename) = FilePath.splitFileName pathname 282 282 283 283 doParseWith :: (Env -> FilePath -> IO a) -> FilePath -> String -> IO a -
src/Pugs/Run.hs
r17042 r17058 35 35 --import Data.Generics.Schemes 36 36 import System.IO 37 import System.FilePath (joinFileName)37 import qualified System.FilePath as FilePath (combine) 38 38 39 39 … … 219 219 , getConfig "sitearch" 220 220 , getConfig "sitelib" 221 , foldl1 joinFileName [getConfig "privlib", "auto", "pugs", "perl6", "lib"]222 , foldl1 joinFileName [getConfig "sitelib", "auto", "pugs", "perl6", "lib"]221 , foldl1 FilePath.combine [getConfig "privlib", "auto", "pugs", "perl6", "lib"] 222 , foldl1 FilePath.combine [getConfig "sitelib", "auto", "pugs", "perl6", "lib"] 223 223 ] 224 224 ++ [ "." ]
