<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -45,8 +45,11 @@ unittest:
 	runghc hledger.hs test
 
 # run doc tests
-doctest:
-	tools/doctest.hs Tests.hs
+doctest: tools/doctest
+	tools/doctest Tests.hs
+
+tools/doctest: tools/doctest.hs
+	ghc --make tools/doctest.hs
 
 # build profiling-enabled hledgerp and archive and show a cleaned-up profile
 # you may need to rebuild some libs: sudo cabal install --reinstall -p ...</diff>
      <filename>Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -39,13 +39,13 @@ main = do
   f &lt;- head `fmap` getArgs
   s &lt;- readFile f
   let tests = doctests s
-  putStrLn $ printf &quot;running %d doctests from %s&quot; (length tests) f
+  putStrLn $ printf &quot;Running %d doctests from %s&quot; (length tests) f
   mapM_ runShellDocTest $ doctests s
 
 runShellDocTest :: String -&gt; IO Bool
 runShellDocTest s = do
   let (cmd, expected) = splitDocTest s
-  putStr $ printf &quot;testing: %s .. &quot; cmd
+  putStr $ printf &quot;Testing: %s .. &quot; cmd
   (_, out, _, h) &lt;- runInteractiveCommand cmd
   exit &lt;- waitForProcess h
   output &lt;- hGetContents out
@@ -56,7 +56,7 @@ runShellDocTest s = do
           putStrLn &quot;ok&quot;
           return True
         else do
-          putStr $ printf &quot;FAILED\nexpected:\n%sgot:\n%s&quot; expected output
+          putStr $ printf &quot;FAILED\nExpected:\n%sGot:\n%s&quot; expected output
           return False
     else do
       putStrLn $ printf &quot;ERROR: %s&quot; (show exit)</diff>
      <filename>tools/doctest.hs</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c5b96b6bc520b4847243857e598b77470f3246db</id>
    </parent>
  </parents>
  <author>
    <name>Simon Michael</name>
    <email>simon@joyful.com</email>
  </author>
  <url>http://github.com/jwiegley/hledger/commit/6db536e2bf463b8e205a6f2322935705e7b6c0bb</url>
  <id>6db536e2bf463b8e205a6f2322935705e7b6c0bb</id>
  <committed-date>2009-03-15T01:47:23-07:00</committed-date>
  <authored-date>2009-03-15T01:47:23-07:00</authored-date>
  <message>tweak doctest output, and compile it


20090315084723-3c3f9-58181688fc0a74c2203729c263f9671c26787369.gz</message>
  <tree>c1b51d2333722cc4559490dc9efe218f76a09fd7</tree>
  <committer>
    <name>Simon Michael</name>
    <email>simon@joyful.com</email>
  </committer>
</commit>
