Conditionally import Data.Monoid.<> depending on version of base

Fixes #64
This commit is contained in:
Joshua Clayton 2016-08-19 04:57:32 -04:00
parent fde9f69a64
commit 9cad495eb2
No known key found for this signature in database
GPG Key ID: 5B6558F77E9A8118
3 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,7 @@
module Main where
import App (runProgram, Options(Options))
import Common
import qualified Data.Maybe as M
import Options.Applicative
import Unused.CLI (SearchRunner(..))

9
src/Common.hs Normal file
View File

@ -0,0 +1,9 @@
{-# LANGUAGE CPP #-}
module Common
( (<>)
) where
#if MIN_VERSION_base(4, 8, 0)
import Data.Monoid ((<>))
#endif

View File

@ -59,6 +59,7 @@ library
, Unused.CLI.ProgressIndicator
, Unused.CLI.ProgressIndicator.Internal
, Unused.CLI.ProgressIndicator.Types
, Common
build-depends: base >= 4.7 && < 5
, process
, containers