git.iko.soy/typeable/pandoc
on master help sign in
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

commit31e261ca39267c725da6014ebdb81724e657dcdb authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateFri 1 Aug 2008, 06:35 (18 years ago) parentba32c2e
2 files changed+8−2
Text/Pandoc/ODT.hs+5−1 pandoc.cabal+3−1
Text/Pandoc/ODT.hs+5−1
@@ -43,7 +43,11 @@ import Text.XML.Light
4343import Text.XML.Light.Cursor
4444import Text.Pandoc.Shared ( withTempDir )
4545import Network.URI ( isURI )
46−import qualified Data.ByteString.Char8 as B ( writeFile )
46+import Data.String ( IsString (..) )
47+import qualified Data.ByteString.Char8 as B ( writeFile, pack, ByteString )
48+
49+instance IsString B.ByteString
50+ where fromString = B.pack
4751
4852-- | Produce an ODT file from OpenDocument XML.
4953saveOpenDocumentAsODT :: FilePath -- ^ Pathname of ODT file to be produced.
pandoc.cabal+3−1
@@ -73,7 +73,9 @@ Library
7373 if flag(highlighting)
7474 Build-depends: highlighting-kate
7575 cpp-options: -DHIGHLIGHTING
76− Build-Depends: parsec < 3, xhtml, mtl, network, filepath, process, directory, utf8-string, template-haskell, bytestring
76+ Build-Depends: parsec < 3, xhtml, mtl, network, filepath, process, directory, utf8-string,
77+ template-haskell, bytestring == 0.9.0.1
78+ -- Note: bytestring-0.9.1.0 contains an InString instance for ByteString
7779 Hs-Source-Dirs: .
7880 Exposed-Modules: Text.Pandoc,
7981 Text.Pandoc.Blocks,