From 9a60de3a5c25f8c51cd2dfd179629ce4a1da54b8 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Tue, 26 Sep 2017 15:32:32 +0200 Subject: Cleanup module headers --- CabalHelper/Compiletime/GuessGhc.hs | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'CabalHelper/Compiletime/GuessGhc.hs') 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) -- cgit v1.2.3