From 43f49f7abe2dc723179264bba2e401de7c508d47 Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Fri, 20 Sep 2013 10:30:51 +0900 Subject: [PATCH] doc for getCompilerOptions. --- Language/Haskell/GhcMod/CabalApi.hs | 1 + Language/Haskell/GhcMod/Internal.hs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Language/Haskell/GhcMod/CabalApi.hs b/Language/Haskell/GhcMod/CabalApi.hs index 270a654..49e2199 100644 --- a/Language/Haskell/GhcMod/CabalApi.hs +++ b/Language/Haskell/GhcMod/CabalApi.hs @@ -33,6 +33,7 @@ import System.FilePath ---------------------------------------------------------------- +-- | Getting necessary 'CompilerOptions' from three information sources. getCompilerOptions :: [GHCOption] -> Cradle -> PackageDescription -> IO CompilerOptions getCompilerOptions ghcopts cradle pkgDesc = do gopts <- getGHCOptions ghcopts cdir $ head buildInfos diff --git a/Language/Haskell/GhcMod/Internal.hs b/Language/Haskell/GhcMod/Internal.hs index 6991f1a..068fad5 100644 --- a/Language/Haskell/GhcMod/Internal.hs +++ b/Language/Haskell/GhcMod/Internal.hs @@ -8,8 +8,8 @@ module Language.Haskell.GhcMod.Internal ( , IncludeDir , CompilerOptions(..) -- * Cabal API - , getCompilerOptions , parseCabalFile + , getCompilerOptions , cabalAllBuildInfo , cabalDependPackages , cabalSourceDirs