Changeset 17058

Show
Ignore:
Timestamp:
07/14/07 06:37:18 (17 months ago)
Author:
audreyt
Message:

* Pugs.Run, Pugs: Chase API change in System.FilePath? (joinFileName -> combine).

Location:
src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs.hs

    r16627 r17058  
    3939import Data.IORef 
    4040import qualified Data.Map as Map 
    41 import System.FilePath (joinFileName, splitFileName) 
     41import qualified System.FilePath as FilePath (combine, splitFileName) 
    4242 
    4343{-| 
     
    255255    case mbin of 
    256256        Just binary -> do 
    257             let (p, _) = splitFileName binary 
     257            let (p, _) = FilePath.splitFileName binary 
    258258            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) ++ ")") 
    260260    where 
    261261    suffixes = 
     
    272272                `mplus` findHelper xs 
    273273        where  
    274         file = foldl1 joinFileName (x ++ [helper]) 
     274        file = foldl1 FilePath.combine (x ++ [helper]) 
    275275    maybeFindFile :: FilePath -> MaybeT IO FilePath 
    276276    maybeFindFile pathname = do 
     
    279279        return pathname 
    280280        where 
    281         (path, filename) = splitFileName pathname 
     281        (path, filename) = FilePath.splitFileName pathname 
    282282 
    283283doParseWith :: (Env -> FilePath -> IO a) -> FilePath -> String -> IO a 
  • src/Pugs/Run.hs

    r17042 r17058  
    3535--import Data.Generics.Schemes 
    3636import System.IO 
    37 import System.FilePath (joinFileName) 
     37import qualified System.FilePath as FilePath (combine) 
    3838 
    3939 
     
    219219                 , getConfig "sitearch" 
    220220                 , 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"] 
    223223                 ] 
    224224              ++ [ "." ]