Skip to content

Commit

Permalink
tweaks to pfe interface
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxPolice committed Feb 4, 2005
1 parent 95b400f commit fa930f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Distribution/Simple.hs
Expand Up @@ -88,7 +88,7 @@ import System.Environment(getArgs)
import System.Exit(ExitCode(..), exitWith)
import System.Directory(removeFile, doesFileExist)

import Control.Monad(when)
import Control.Monad(when, unless)
import Data.List ( intersperse )
import Data.Maybe ( isNothing, fromJust, maybeToList )
import System.IO.Error (try)
Expand Down Expand Up @@ -233,6 +233,7 @@ defaultMainWorker pkg_descr_in action args hooks
ProgramaticaCmd -> do
(verbose, _, args) <- parseProgramaticaArgs args []
pkg_descr <- hookOrInArgs preBuild args verbose
unless (hasLibs pkg_descr) (error "no libraries found in this project.")
withLib pkg_descr ExitSuccess (\lib ->
do lbi <- getPersistBuildConfig
mPfe <- findProgram "pfesetup" Nothing
Expand All @@ -253,8 +254,8 @@ defaultMainWorker pkg_descr_in action args hooks
-- "-o", targetDir,
-- "-t", showPkg,
-- "-p", prologName]
((if verbose > 4 then ["-v"] else [])
++ outFiles)
("noplogic":"cpp": (if verbose > 4 then ["-v"] else [])
++ inFiles)
when (code /= ExitSuccess) (exitWith code)
return code)

Expand Down

0 comments on commit fa930f2

Please sign in to comment.