mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-08-15 07:40:46 +03:00
Conditionally import Data.Monoid.<> depending on version of base
Fixes #64
This commit is contained in:
parent
fde9f69a64
commit
9cad495eb2
@ -1,6 +1,7 @@
|
|||||||
module Main where
|
module Main where
|
||||||
|
|
||||||
import App (runProgram, Options(Options))
|
import App (runProgram, Options(Options))
|
||||||
|
import Common
|
||||||
import qualified Data.Maybe as M
|
import qualified Data.Maybe as M
|
||||||
import Options.Applicative
|
import Options.Applicative
|
||||||
import Unused.CLI (SearchRunner(..))
|
import Unused.CLI (SearchRunner(..))
|
||||||
|
9
src/Common.hs
Normal file
9
src/Common.hs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{-# LANGUAGE CPP #-}
|
||||||
|
|
||||||
|
module Common
|
||||||
|
( (<>)
|
||||||
|
) where
|
||||||
|
|
||||||
|
#if MIN_VERSION_base(4, 8, 0)
|
||||||
|
import Data.Monoid ((<>))
|
||||||
|
#endif
|
@ -59,6 +59,7 @@ library
|
|||||||
, Unused.CLI.ProgressIndicator
|
, Unused.CLI.ProgressIndicator
|
||||||
, Unused.CLI.ProgressIndicator.Internal
|
, Unused.CLI.ProgressIndicator.Internal
|
||||||
, Unused.CLI.ProgressIndicator.Types
|
, Unused.CLI.ProgressIndicator.Types
|
||||||
|
, Common
|
||||||
build-depends: base >= 4.7 && < 5
|
build-depends: base >= 4.7 && < 5
|
||||||
, process
|
, process
|
||||||
, containers
|
, containers
|
||||||
|
Loading…
Reference in New Issue
Block a user