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


-- | Install Haskell software
--   
--   This is a utility to install Haskell programs on a system using stack.
--   Even though stack has an <a>install</a> command, I found it to be not
--   enough for my needs. This software tries to install the binaries, the
--   LICENSE file and also the resources directory if it finds one. There
--   is also an optional library component to assist with locating
--   installed data files at runtime.
@package hsinstall
@version 1.6


-- | Support library for users of the installation script in hsinstall.
--   When your project has data files in a <tt>resources</tt> directory,
--   this library can be used to locate those files at runtime.
module HSInstall

-- | Get the path to the resources, relative to where the binary was
--   installed and executed from. The argument passed here is expected to
--   be the <tt>getDataDir</tt> generated by Cabal at compile time in the
--   <tt>Paths_YOUR_PROJECT</tt> module.
--   
--   Usage:
--   
--   <pre>
--   import HSInstall ( getRsrcDir )
--   import Paths_YOUR_PROJECT ( getDataDir )
--   
--   resourcesDir &lt;- getRsrcDir getDataDir
--   
--   </pre>
getRsrcDir :: IO FilePath -> IO FilePath
