Skip to content

Commit

Permalink
Resolve merge conflicts with paul-rouse#14
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-rouse committed Oct 24, 2016
2 parents 5725ae4 + ac45c11 commit 42e9711
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MIN_VERSION_Cabal(x,y,z) 0
#endif

import Control.Monad (liftM2, mplus)
import Control.Monad (liftM, msum, sequence)
import Data.List (isPrefixOf)
import Distribution.PackageDescription
import Distribution.Simple
Expand Down Expand Up @@ -41,13 +41,17 @@ main = defaultMainWithHooks simpleUserHooks {
}

mysqlConfigProgram = (simpleProgram "mysql_config") {
programFindLocation = \verbosity -> constOrId $ liftM2 mplus
programFindLocation = \verbosity -> constOrId $ liftM msum $ sequence
#if MIN_VERSION_Cabal(1,24,0)
(findProgramOnSearchPath verbosity [ProgramSearchPathDefault] "mysql_config")
(findProgramOnSearchPath verbosity [ProgramSearchPathDefault] "mysql_config5")
[ (findProgramOnSearchPath verbosity [ProgramSearchPathDefault] "mysql_config")
, (findProgramOnSearchPath verbosity [ProgramSearchPathDefault] "mysql_config5")
, (findProgramOnSearchPath verbosity [ProgramSearchPathDefault] "mariadb_config")
]
#else
(findProgramLocation verbosity "mysql_config")
(findProgramLocation verbosity "mysql_config5")
[ (findProgramLocation verbosity "mysql_config")
, (findProgramLocation verbosity "mysql_config5")
, (findProgramLocation verbosity "mariadb_config")
]
#endif
}

Expand Down

0 comments on commit 42e9711

Please sign in to comment.