From 31e261ca39267c725da6014ebdb81724e657dcdb Mon Sep 17 00:00:00 2001
From: fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
Date: Fri, 1 Aug 2008 06:35:55 +0000
Subject: Depend on bytestring-0.9.0.1 and provide a ByteString instance for
 IsString manually, in Text/Pandoc/ODT.hs.  Upgrading to 0.9.1.0 causes
 problems unless every package has been built with that version, so for now we
 stick with 0.9.0.1.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1358 788f1e2b-df1e-0410-8736-df70ead52e1b
---
 Text/Pandoc/ODT.hs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'Text')

diff --git a/Text/Pandoc/ODT.hs b/Text/Pandoc/ODT.hs
index c254f6013..16e8f0c26 100644
--- a/Text/Pandoc/ODT.hs
+++ b/Text/Pandoc/ODT.hs
@@ -43,7 +43,11 @@ import Text.XML.Light
 import Text.XML.Light.Cursor
 import Text.Pandoc.Shared ( withTempDir )
 import Network.URI ( isURI )
-import qualified Data.ByteString.Char8 as B ( writeFile )
+import Data.String ( IsString (..) )
+import qualified Data.ByteString.Char8 as B ( writeFile, pack, ByteString )
+
+instance IsString B.ByteString
+  where fromString = B.pack
 
 -- | Produce an ODT file from OpenDocument XML.
 saveOpenDocumentAsODT :: FilePath    -- ^ Pathname of ODT file to be produced.
-- 
cgit v1.2.3