diff options
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. |