-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Install Haskell software
--   
--   This is a tool for deploying software projects into directory
--   structures suitable for installation on a system. It builds upon the
--   `stack install` command and adds more features. It's also a tool for
--   easier AppImage creation.
@package hsinstall
@version 2.2


-- | Resource location support library for software deployed with the
--   hsinstall utility. Or, really, anything that roughly follows an
--   FHS-like deployment structure.
module HSInstall.Resources

-- | Get a path to the application resources directory relative to the
--   binary location. The argument passed here is expected to be the output
--   of <tt>getDataDir</tt> generated by Cabal at compile time in the
--   <tt>Paths_YOUR_PROJECT</tt> module.
--   
--   Usage:
--   
--   <pre>
--   import HSInstall.Resources ( getRsrcDir )
--   import Paths_PROJECTNAME ( getDataDir )
--   
--   resourcesDir &lt;- getRsrcDir getDataDir
--   
--   </pre>
--   
--   If your binary is at <tt>/foo/bar/usr/bin/BINARY</tt>, this library
--   will generate this path:
--   <tt>/foo/bar/usr/share/PROJECTNAME-VERSION/resources</tt>
getRsrcDir :: IO FilePath -> IO FilePath
