Import pretty-print from optparse
instead of depending on ansi-wl-pprint
This commit is contained in:
parent
c3cf416097
commit
2306fbf9e5
@ -207,7 +207,6 @@ Executable ghc-mod
|
|||||||
, ghc < 7.11
|
, ghc < 7.11
|
||||||
, fclabels ==2.0.*
|
, fclabels ==2.0.*
|
||||||
, optparse-applicative >=0.11.0 && <0.13.0
|
, optparse-applicative >=0.11.0 && <0.13.0
|
||||||
, ansi-wl-pprint ==0.6.*
|
|
||||||
, ghc-mod
|
, ghc-mod
|
||||||
|
|
||||||
Executable ghc-modi
|
Executable ghc-modi
|
||||||
|
@ -17,7 +17,6 @@ import Language.Haskell.GhcMod.Monad
|
|||||||
import System.FilePath ((</>))
|
import System.FilePath ((</>))
|
||||||
import System.Directory (setCurrentDirectory, getAppUserDataDirectory,
|
import System.Directory (setCurrentDirectory, getAppUserDataDirectory,
|
||||||
removeDirectoryRecursive)
|
removeDirectoryRecursive)
|
||||||
-- import System.Environment (getArgs)
|
|
||||||
import System.IO
|
import System.IO
|
||||||
import System.Exit
|
import System.Exit
|
||||||
import Text.PrettyPrint hiding ((<>))
|
import Text.PrettyPrint hiding ((<>))
|
||||||
|
@ -26,7 +26,7 @@ module GHCMod.Options.DocUtils (
|
|||||||
|
|
||||||
import Options.Applicative
|
import Options.Applicative
|
||||||
import Data.Monoid (Monoid) -- for ghc<7.10
|
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 :: [Doc] -> InfoMod a
|
||||||
desc = footerDoc . Just . indent 2 . vsep
|
desc = footerDoc . Just . indent 2 . vsep
|
||||||
|
Loading…
Reference in New Issue
Block a user