<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -248,9 +248,12 @@ splitCommaList :: String -&gt; [String]
 splitCommaList l =
   let (first,rest) = break (== ',') l
       first' = lrStrip first
-  in  if null rest
+{-  in  if null rest
          then if null first' then [] else [first']
-         else first' : splitCommaList (tail rest)
+         else first' : splitCommaList (tail rest) -}
+  in case rest of
+         [] -&gt; if null first' then [] else [first']
+         (r:rs) -&gt; first' : splitCommaList rs
 
 lrStrip :: String -&gt; String
 lrStrip = reverse . dropWhile isWhitespace . reverse . dropWhile isWhitespace</diff>
      <filename>Network/Gitit/Config.hs</filename>
    </modified>
    <modified>
      <diff>@@ -236,9 +236,12 @@ startsWithUnderscore _ = False
 splitOn :: Eq a =&gt; a -&gt; [a] -&gt; [[a]]
 splitOn c cs =
   let (next, rest) = break (==c) cs
-  in  if null rest
+{-  in  if null rest
          then [next]
-         else next : splitOn c (tail rest)
+         else next : splitOn c (tail rest) -}
+  in case rest of
+         [] -&gt; [next]
+         (r:rs) -&gt; next : splitOn c rs 
 
 -- | Returns path portion of URI, without initial @\/@.
 -- Consecutive spaces are collapsed.  We don't want to distinguish</diff>
      <filename>Network/Gitit/Framework.hs</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2718b93ea5bcca0e1117ce7aef1a8641ee13d086</id>
    </parent>
  </parents>
  <author>
    <name>Thomas Hartman</name>
    <email>thomas@modernfeed.com</email>
  </author>
  <url>http://github.com/jgm/gitit/commit/965336a5284c23caca7ac5f9625ecaee9f1b3546</url>
  <id>965336a5284c23caca7ac5f9625ecaee9f1b3546</id>
  <committed-date>2009-10-24T09:06:23-07:00</committed-date>
  <authored-date>2009-10-24T09:06:23-07:00</authored-date>
  <message>use case expression instead of unsafe tail.</message>
  <tree>704b8904c8b27d01adf80323940638331ebeb1e2</tree>
  <committer>
    <name>Thomas Hartman</name>
    <email>thomas@modernfeed.com</email>
  </committer>
</commit>
