FindBin 0.0.1 → 0.0.2
raw patch · 3 files changed
+12/−9 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- FindBin.cabal +6/−3
- LICENSE +1/−1
- src/System/Environment/FindBin.hs +5/−5
FindBin.cabal view
@@ -1,6 +1,7 @@ name: FindBin-version: 0.0.1-copyright: 2008 Audrey Tang+version: 0.0.2+copyright: 2008-2009 Audrey Tang+homepage: http://github.com/audreyt/findbin license: BSD3 license-file: LICENSE author: Audrey Tang <audreyt@audreyt.org>@@ -10,7 +11,7 @@ to allow the use of paths relative to it. FindBin supports invocation of Haskell programs via "ghci", via "runhaskell/runghc", as well as compiled as an executable.-stability: experimental+stability: Stable build-type: Simple extensions: ForeignFunctionInterface exposed-modules: System.Environment.FindBin@@ -18,3 +19,5 @@ extra-source-files: README hs-source-dirs: src category: System+tested-with: GHC==6.8.2, GHC==6.8.3, GHC==6.10.1+ghc-options: -Wall
LICENSE view
@@ -1,4 +1,4 @@-Copyright 2008 by Audrey Tang+Copyright 2008-2009 by Audrey Tang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to
src/System/Environment/FindBin.hs view
@@ -5,11 +5,11 @@ , getProgPath ) where -import Foreign-import Foreign.C-import System.Directory-import System.FilePath-import System.IO.Unsafe+import Foreign (Ptr, alloca, peek, peekElemOff)+import Foreign.C (CInt, CString, peekCString)+import System.Directory (canonicalizePath, findExecutable)+import System.FilePath (takeDirectory)+import System.IO.Unsafe (unsafePerformIO) {-# NOINLINE __Bin__ #-}