File tree 2 files changed +8
-0
lines changed
src/Options/Applicative/Help
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE CPP #-}
1
2
module Options.Applicative.Help.Core (
2
3
cmdDesc ,
3
4
briefDesc ,
@@ -24,8 +25,12 @@ import Data.Function (on)
24
25
import Data.List (sort , intersperse , groupBy )
25
26
import Data.Foldable (any , foldl' )
26
27
import Data.Maybe (maybeToList , catMaybes , fromMaybe )
28
+ #if !MIN_VERSION_base(4,8,0)
27
29
import Data.Monoid (mempty )
30
+ #endif
31
+ #if !MIN_VERSION_base(4,11,0)
28
32
import Data.Semigroup (Semigroup (.. ))
33
+ #endif
29
34
import Prelude hiding (any )
30
35
31
36
import Options.Applicative.Common
Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE CPP #-}
1
2
module Options.Applicative.Help.Pretty
2
3
( module Text.PrettyPrint.ANSI.Leijen
3
4
, (.$.)
@@ -6,7 +7,9 @@ module Options.Applicative.Help.Pretty
6
7
) where
7
8
8
9
import Control.Applicative
10
+ #if !MIN_VERSION_base(4,11,0)
9
11
import Data.Semigroup ((<>) )
12
+ #endif
10
13
11
14
import Text.PrettyPrint.ANSI.Leijen hiding ((<$>) , (<>) , columns )
12
15
import Text.PrettyPrint.ANSI.Leijen.Internal (Doc (.. ), flatten )
You can’t perform that action at this time.
0 commit comments