diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2017-09-26 15:32:32 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2017-09-26 15:37:25 +0200 |
commit | 9a60de3a5c25f8c51cd2dfd179629ce4a1da54b8 (patch) | |
tree | 616cb0d45b3e07a0e3e1e3f1f0d46c807bcdf525 /CabalHelper/Compiletime/GuessGhc.hs | |
parent | 6ab7e21362b0708ec3867456581684e78c9ac8ea (diff) |
Cleanup module headers
Diffstat (limited to 'CabalHelper/Compiletime/GuessGhc.hs')
-rw-r--r-- | CabalHelper/Compiletime/GuessGhc.hs | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/CabalHelper/Compiletime/GuessGhc.hs b/CabalHelper/Compiletime/GuessGhc.hs index e1cf577..f4b33d5 100644 --- a/CabalHelper/Compiletime/GuessGhc.hs +++ b/CabalHelper/Compiletime/GuessGhc.hs @@ -1,11 +1,3 @@ -module CabalHelper.Compiletime.GuessGhc (guessToolFromGhcPath) where - -import Data.Maybe -import Data.Char -import Distribution.Simple.BuildPaths -import System.Directory -import System.FilePath - -- Copyright (c) 2003-2014, Isaac Jones, Simon Marlow, Martin Sjögren, -- Bjorn Bringert, Krasimir Angelov, -- Malcolm Wallace, Ross Patterson, Ian Lynagh, @@ -41,6 +33,20 @@ import System.FilePath -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +{-| +Module : CabalHelper.Compiletime.GuessGhc +Description : Logic for finding @ghc-pkg@ based on path to @ghc@ +License : BSD3 +-} + +module CabalHelper.Compiletime.GuessGhc (guessToolFromGhcPath) where + +import Data.Maybe +import Data.Char +import Distribution.Simple.BuildPaths +import System.Directory +import System.FilePath + guessToolFromGhcPath :: FilePath -- ^ Tool name -> FilePath -- ^ GHC exe path -> IO (Maybe FilePath) |