Removed all dependencies on 'pretty' package.

This commit is contained in:
John MacFarlane 2010-12-22 11:48:08 -08:00
parent 8e9c490b0a
commit dc597a8a68
2 changed files with 2 additions and 6 deletions

View file

@ -165,7 +165,7 @@ Library
-- Note: the following material must be in both Library and Executable stanzas.
-- It needs to be duplicated because of the library & executable flags.
-- BEGIN DUPLICATED SECTION
Build-Depends: pretty >= 1, containers >= 0.1,
Build-Depends: containers >= 0.1,
parsec >= 2.1, xhtml >= 3000.0,
mtl >= 1.1, network >= 2, filepath >= 1.1,
process >= 1, directory >= 1,
@ -238,7 +238,7 @@ Executable pandoc
-- Note: the following material must be in both Library and Executable stanzas.
-- It needs to be duplicated because of the library & executable flags.
-- BEGIN DUPLICATED SECTION
Build-Depends: pretty >= 1, containers >= 0.1,
Build-Depends: containers >= 0.1,
parsec >= 2.1, xhtml >= 3000.0,
mtl >= 1.1, network >= 2, filepath >= 1.1,
process >= 1, directory >= 1,

View file

@ -72,7 +72,6 @@ import Text.ParserCombinators.Parsec
import Control.Monad (liftM, when, forM)
import System.FilePath
import Data.List (intercalate, intersperse)
import Text.PrettyPrint (text, Doc)
import Text.XHtml (primHtml, Html)
import Data.ByteString.Lazy.UTF8 (ByteString, fromString)
import Text.Pandoc.Shared (readDataFile)
@ -112,9 +111,6 @@ instance TemplateTarget ByteString where
instance TemplateTarget Html where
toTarget = primHtml
instance TemplateTarget Doc where
toTarget = text
-- | Renders a template
renderTemplate :: TemplateTarget a
=> [(String,String)] -- ^ Assoc. list of values for variables