uuagc-cabal 1.0.0.3 → 1.0.0.4
raw patch · 2 files changed
+14/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
src/Distribution/Simple/UUAGC/UUAGC.hs view
@@ -224,11 +224,14 @@ -> SDistFlags -> IO () uuagcSDistHook uuagcPath pd mbLbi uh df = do+ {- case mbLbi of Nothing -> warn normal "sdist: the local buildinfo was not present. Skipping AG initialization. Dist may fail." Just lbi -> let classesPath = buildDir lbi </> agClassesFile in commonHook uuagcPath classesPath pd lbi (sDistVerbosity df) originalSDistHook pd mbLbi uh df+ -}+ originalSDistHook pd mbLbi (uh { hookedPreProcessors = ("ag", nouuagc):("lag",nouuagc):knownSuffixHandlers }) df -- bypass preprocessors uuagcBuildHook :: FilePath@@ -250,6 +253,7 @@ -> IO () commonHook uuagcPath classesPath pd lbi fl = do let verbosity = fromFlagOrDefault normal fl+ when (verbosity >= verbose) $ putStrLn ("commonHook: Assuming AG classesPath: " ++ classesPath) createDirectoryIfMissingVerbose verbosity True (buildDir lbi) let lib = library pd exes = executables pd@@ -282,6 +286,7 @@ print $ "processing: " ++ inFile ++ " generating: " ++ outFile -- opts <- getAGFileOptions $ customFieldsBI build let classesPath = buildDir lbi </> agClassesFile+ when (verbosity >= verbose) $ putStrLn ("uuagc-preprocessor: Assuming AG classesPath: " ++ classesPath) fileOpts <- readFileOptions classesPath let opts = case lookup inFile fileOpts of Nothing -> []@@ -295,3 +300,11 @@ ExitSuccess -> return () ExitFailure _ -> throwFailure }++nouuagc :: BuildInfo -> LocalBuildInfo -> PreProcessor+nouuagc build lbi =+ PreProcessor {+ platformIndependent = True,+ runPreProcessor = mkSimplePreProcessor $ \inFile outFile verbosity -> do+ info verbosity ("skipping: " ++ outFile)+ }
uuagc-cabal.cabal view
@@ -1,7 +1,7 @@ cabal-version: >=1.8 build-type: Simple name: uuagc-cabal-version: 1.0.0.3+version: 1.0.0.4 license: BSD3 license-file: LICENSE maintainer: Arie Middelkoop <ariem@cs.uu.nl>