<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>ghcihalp.bat</filename>
    </added>
    <added>
      <filename>pyhalp.bat</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -92,4 +92,4 @@ for j, r in enumerate(result_lines):
                 i += 1
         break
 
-sys.stdout.write(''.join(output))
+sys.stdout.write(''.join(output).replace('\r\n', '\n'))</diff>
      <filename>ghcihalp.py</filename>
    </modified>
    <modified>
      <diff>@@ -37,7 +37,7 @@
 (defun halp-update-python ()
   (interactive)
   (halp-find-helpers-directory)
-  (halp-update/diff (concat halp-helpers-directory &quot;pyhalp.py&quot;) 
+  (halp-update/diff (concat halp-helpers-directory (pick-by-os &quot;pyhalp.py&quot; &quot;pyhalp.bat&quot;)) 
                     (list (buffer-name (current-buffer)))))
 
 (defun halp-update-javascript ()
@@ -47,11 +47,11 @@
 
 (defun halp-update-haskell ()
   (interactive)
-  (halp-update-relative &quot;ghcihalp.py&quot; '(&quot;.hs&quot;)))
+  (halp-update-relative (pick-by-os &quot;ghcihalp.py&quot; &quot;ghcihalp.bat&quot;) '(&quot;.hs&quot;)))
 
 (defun halp-update-literate-haskell ()
   (interactive)
-  (halp-update-relative &quot;ghcihalp.py&quot; '(&quot;.lhs&quot;)))
+  (halp-update-relative (pick-by-os &quot;ghcihalp.py&quot; &quot;ghcihalp.bat&quot;) '(&quot;.lhs&quot;)))
 
 (defun halp-update-relative (command args)
   (halp-find-helpers-directory)
@@ -176,6 +176,10 @@ that outputs a diff.&quot;
 (defun halp-from (start)
   (buffer-substring start (point)))
 
+(defun pick-by-os (default-file windows-file)
+  (if (eq system-type 'windows-nt)
+      windows-file
+    default-file))
 
 ;; Wrap-up
 </diff>
      <filename>halp.el</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>07ec60c0478b8fb948f5e357ffc964b11dac0c90</id>
    </parent>
  </parents>
  <author>
    <name>Nada Amin</name>
    <email>namin@alum.mit.edu</email>
  </author>
  <url>http://github.com/darius/halp/commit/34d00bd5e72faba5ae1e32cbce6ed379bd259018</url>
  <id>34d00bd5e72faba5ae1e32cbce6ed379bd259018</id>
  <committed-date>2008-12-20T22:45:25-08:00</committed-date>
  <authored-date>2008-12-18T23:56:58-08:00</authored-date>
  <message>Windows-compatible

Signed-off-by: Darius Bacon &lt;darius_bacon@yahoo.com&gt;</message>
  <tree>10f279db3249ba5fca302afe808921af34f37f46</tree>
  <committer>
    <name>Darius Bacon</name>
    <email>darius_bacon@yahoo.com</email>
  </committer>
</commit>
