PyF 0.7.2.0 → 0.7.3.0
raw patch · 3 files changed
+15/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- PyF.cabal +1/−1
- test/SpecFail.hs +10/−1
ChangeLog.md view
@@ -1,5 +1,9 @@ # Revision history for PyF +## 0.7.3.0 -- 2019-02-28++- Tests: fix non reproducible tests+ ## 0.7.2.0 -- 2019-02-27 - Fixed: PyF now uses the same haskell extensions as the one used by the current haskell file to parse sub expressions.
PyF.cabal view
@@ -1,5 +1,5 @@ name: PyF-version: 0.7.2.0+version: 0.7.3.0 synopsis: Quasiquotations for a python like interpolated string formater description: Quasiquotations for a python like interpolated string formater. license: BSD3
test/SpecFail.hs view
@@ -39,7 +39,16 @@ IO.hPutStr fd $ "{-# LANGUAGE QuasiQuotes, ExtendedDefaultRules, TypeApplications #-}\nimport PyF\ntruncate' = truncate @Float @Int\nhello = \"hello\"\nnumber = 3.14 :: Float\nmain :: IO ()\nmain = [f|" ++ s ++ "|]\n" IO.hFlush fd - (ecode, _stdout, stderr) <- readProcessWithExitCode "ghc" [path, "-isrc", "-package-env", "-"] ""+ (ecode, _stdout, stderr) <- readProcessWithExitCode "ghc" [path,+ -- Include all PyF files+ "-isrc",+ -- Disable the usage of the annoying .ghc environment file+ "-package-env", "-",+ -- Tests use a filename in a temporary directory which may have a long filename which triggers+ -- line wrapping, reducing the reproducibility of error message+ -- By setting the column size to a high value, we ensure reproducible error messages+ "-dppr-cols=10000000000000"+ ] "" case ecode of ExitFailure _ -> pure (CompileError (sanitize path stderr)) ExitSuccess -> do