File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/Options/Applicative/Help Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ {-# LANGUAGE CPP #-}
12module Options.Applicative.Help.Core (
23 cmdDesc ,
34 briefDesc ,
@@ -24,8 +25,12 @@ import Data.Function (on)
2425import Data.List (sort , intersperse , groupBy )
2526import Data.Foldable (any , foldl' )
2627import Data.Maybe (maybeToList , catMaybes , fromMaybe )
28+ #if !MIN_VERSION_base(4,8,0)
2729import Data.Monoid (mempty )
30+ #endif
31+ #if !MIN_VERSION_base(4,11,0)
2832import Data.Semigroup (Semigroup (.. ))
33+ #endif
2934import Prelude hiding (any )
3035
3136import Options.Applicative.Common
Original file line number Diff line number Diff line change 1+ {-# LANGUAGE CPP #-}
12module Options.Applicative.Help.Pretty
23 ( module Text.PrettyPrint.ANSI.Leijen
34 , (.$.)
@@ -6,7 +7,9 @@ module Options.Applicative.Help.Pretty
67 ) where
78
89import Control.Applicative
10+ #if !MIN_VERSION_base(4,11,0)
911import Data.Semigroup ((<>) )
12+ #endif
1013
1114import Text.PrettyPrint.ANSI.Leijen hiding ((<$>) , (<>) , columns )
1215import Text.PrettyPrint.ANSI.Leijen.Internal (Doc (.. ), flatten )
You can’t perform that action at this time.
0 commit comments