executable-path 0.0.3 → 0.0.3.1
raw patch · 4 files changed
+14/−11 lines, 4 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- System.Environment.Executable: instance Show ScriptPath
+ System.Environment.Executable: instance GHC.Show.Show System.Environment.Executable.ScriptPath
Files
- System/Environment/Executable.hs +2/−2
- System/Environment/Executable/BSD.hs +4/−4
- System/Environment/Executable/FreeBSD.hs +4/−4
- executable-path.cabal +4/−1
System/Environment/Executable.hs view
@@ -15,9 +15,9 @@ the path of the application bundle on OSX). Supported operating systems: - * Win32 (tested on Windows XP \/ x86 only)+ * Win32 (tested on Windows 7) - * Mac OS X (tested on Leopard \/ x86 only)+ * Mac OS X * Linux
System/Environment/Executable/BSD.hs view
@@ -34,7 +34,7 @@ import Foreign import Foreign.C -import System.Posix+import System.Posix as Posix import System.Directory --import System.FilePath @@ -69,9 +69,9 @@ getExecutablePathProcFS' symlink = do pid <- getPID let procPid = "/proc/" ++ show pid ++ "/" ++ symlink- fileExist procPid >>= \b -> if b - then getSymbolicLinkStatus procPid >>= \s -> if isSymbolicLink s- then liftM Just $ readSymbolicLink procPid+ Posix.fileExist procPid >>= \b -> if b + then Posix.getSymbolicLinkStatus procPid >>= \s -> if Posix.isSymbolicLink s+ then liftM Just $ Posix.readSymbolicLink procPid else return Nothing else return Nothing
System/Environment/Executable/FreeBSD.hs view
@@ -22,7 +22,7 @@ import Foreign import Foreign.C -import System.Posix+import System.Posix as Posix import System.Directory --------------------------------------------------------------------------------@@ -165,9 +165,9 @@ getExecutablePathProcFS' symlink = do pid <- getPID let procPid = "/proc/" ++ show pid ++ "/" ++ symlink- fileExist procPid >>= \b -> if b - then getSymbolicLinkStatus procPid >>= \s -> if isSymbolicLink s- then liftM Just $ readSymbolicLink procPid+ Posix.fileExist procPid >>= \b -> if b + then Posix.getSymbolicLinkStatus procPid >>= \s -> if Posix.isSymbolicLink s+ then liftM Just $ Posix.readSymbolicLink procPid else return Nothing else return Nothing
executable-path.cabal view
@@ -1,5 +1,5 @@ Name: executable-path-Version: 0.0.3+Version: 0.0.3.1 Synopsis: Finding out the full path of the executable. Description: The documentation of "System.Environment.getProgName" says that@@ -9,6 +9,9 @@ of the program as invoked.\" This library tries to provide the missing path.+ + Note: Since base 4.6.0.0, there is also a function + "System.Environment.getExecutablePath". License: PublicDomain License-file: LICENSE