diff options
| author | krasimir <krasimir@chalmers.se> | 2008-06-19 14:16:05 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2008-06-19 14:16:05 +0000 |
| commit | 883e96b0c5e5cfaf160841f43bb297afb79a9ba5 (patch) | |
| tree | 64152b8924f3d538fad057361df0440ecf416365 /src-3.0 | |
| parent | 4dd62417dc64609e0c37633fbbba52e82c221b2e (diff) | |
move the prelude sources to the prelude directory and add the resource library to cabal
Diffstat (limited to 'src-3.0')
| -rw-r--r-- | src-3.0/GF/Infra/UseIO.hs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src-3.0/GF/Infra/UseIO.hs b/src-3.0/GF/Infra/UseIO.hs index 5762454d7..00b956708 100644 --- a/src-3.0/GF/Infra/UseIO.hs +++ b/src-3.0/GF/Infra/UseIO.hs @@ -30,11 +30,6 @@ import Control.Monad import Control.Exception(evaluate) import qualified Data.ByteString.Char8 as BS -#ifdef mingw32_HOST_OS -import System.Win32.DLL -import Foreign.Ptr -#endif - putShow' :: Show a => (c -> a) -> c -> IO () putShow' f = putStrLn . show . length . show . f @@ -102,13 +97,7 @@ getLibraryPath :: IO FilePath getLibraryPath = catch (getEnv gfLibraryPath) -#ifdef mingw32_HOST_OS - (\_ -> do exepath <- getModuleFileName nullPtr - let (path,_) = splitFileName exepath - canonicalizePath (combine path "../lib")) -#else - (const getDataDir) -#endif + (\ex -> getDataDir >>= \path -> return (path </> "lib")) -- | extends the search path with the -- 'gfLibraryPath' and 'gfGrammarPathVar' |
