Import pretty-print from optparse

instead of depending on ansi-wl-pprint
This commit is contained in:
Nikolay Yakimov 2015-12-20 08:47:52 +03:00
parent c3cf416097
commit 2306fbf9e5
3 changed files with 1 additions and 3 deletions

View File

@ -207,7 +207,6 @@ Executable ghc-mod
, ghc < 7.11
, fclabels ==2.0.*
, optparse-applicative >=0.11.0 && <0.13.0
, ansi-wl-pprint ==0.6.*
, ghc-mod
Executable ghc-modi

View File

@ -17,7 +17,6 @@ import Language.Haskell.GhcMod.Monad
import System.FilePath ((</>))
import System.Directory (setCurrentDirectory, getAppUserDataDirectory,
removeDirectoryRecursive)
-- import System.Environment (getArgs)
import System.IO
import System.Exit
import Text.PrettyPrint hiding ((<>))

View File

@ -26,7 +26,7 @@ module GHCMod.Options.DocUtils (
import Options.Applicative
import Data.Monoid (Monoid) -- for ghc<7.10
import Text.PrettyPrint.ANSI.Leijen as PP hiding ((<>), (<$>), (<$$>), int)
import Options.Applicative.Help.Pretty as PP hiding ((<$$>), int)
desc :: [Doc] -> InfoMod a
desc = footerDoc . Just . indent 2 . vsep