doctest 0.9.1 → 0.9.2
raw patch · 3 files changed
+9/−3 lines, 3 filesdep ~stringbuilderPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: stringbuilder
API changes (from Hackage documentation)
Files
- doctest.cabal +2/−2
- src/Interpreter.hs +6/−0
- src/Parse.hs +1/−1
doctest.cabal view
@@ -1,5 +1,5 @@ name: doctest-version: 0.9.1+version: 0.9.2 synopsis: Test interactive Haskell examples description: The doctest program checks examples in source code comments. It is modeled after doctest for Python@@ -86,7 +86,7 @@ , HUnit == 1.2.* , hspec >= 1.3 , QuickCheck >= 2.5- , stringbuilder+ , stringbuilder >= 0.2 , silently , filepath
src/Interpreter.hs view
@@ -46,6 +46,12 @@ _ <- eval interpreter "import System.IO" _ <- eval interpreter "import GHC.IO.Handle" _ <- eval interpreter "hDuplicateTo stdout stderr"++ -- this is required on systems that don't use utf8 as default encoding (e.g.+ -- Windows)+ _ <- eval interpreter "hSetEncoding stdout utf8"+ _ <- eval interpreter "hSetEncoding stderr utf8"+ return interpreter where myFlags = ["-v0", "--interactive", "-ignore-dot-ghci"] ++ flags
src/Parse.hs view
@@ -49,7 +49,7 @@ parseComment c = properties ++ examples where examples = map (fmap $ uncurry Example) (parseInteractions c)- properties = [] -- map (fmap Property) (parseProperties c)+ properties = map (fmap Property) (parseProperties c) -- | Extract all properties from given Haddock comment. parseProperties :: Located String -> [Located Expression]