Maintainer | Brandon Chinn <brandon@leapyear.io> |
---|---|
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Defines functions that should be used in a self-extractable executable.
Documentation
extractTo :: FilePath -> IO () Source #
Extract the self-bundled executable to the given path.
extractTo "dir" -- will extract to $CWD/dir extractTo "/usr/local/lib"
withExtractToTemp :: (FilePath -> IO ()) -> IO () Source #
Extract the self-bundled executable to a temporary path.
withExtractToTemp $ tmp -> do ...
withExtractToTemp' :: (Path Abs Dir -> IO ()) -> IO () Source #
Same as withExtractToTemp
, except using the Path
library.