diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-08-01 06:35:55 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-08-01 06:35:55 +0000 |
commit | 31e261ca39267c725da6014ebdb81724e657dcdb (patch) | |
tree | 2ea429256006efdf352c86498b07166c79ff75d9 /Text/Pandoc | |
parent | ba32c2ec42182bcd7bdb995f90cd1405353fa400 (diff) | |
download | pandoc-31e261ca39267c725da6014ebdb81724e657dcdb.tar.gz |
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
Diffstat (limited to 'Text/Pandoc')
-rw-r--r-- | Text/Pandoc/ODT.hs | 6 |
1 files changed, 5 insertions, 1 deletions
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. |