]> gitweb.michael.orlitzky.com - dead/lwn-epub.git/blobdiff - src/LWN/Article.hs
Fix the duplicated full story body bug.
[dead/lwn-epub.git] / src / LWN / Article.hs
index 47e36519858209235829485c6cf099309d1d7963..aa267903a445b790b9d7e481025b15b87fc4fd4d 100644 (file)
@@ -15,9 +15,6 @@ import Test.Framework (Test, testGroup)
 import Test.Framework.Providers.HUnit (testCase)
 import Text.Regex.Posix ((=~))
 import Text.XML.HXT.Core (
-  (>>>),
-  arr,
-  hread,
   selem,
   none,
   runX,
@@ -67,8 +64,9 @@ instance XML Byline where
   to_xml (Byline   Nothing) = none
 
 instance XML BodyHtml where
-  to_xml (BodyHtml bh) =
-    (arr $ const bh) >>> hread
+  -- Don't question this. I tried to do it correctly and
+  -- all hell broke loose.
+  to_xml (BodyHtml bh) = txt bh
 
 data Article = Article { title     :: Title,
                          byline    :: Byline,