Fixed warnings.
This commit is contained in:
parent
6a1476e7e2
commit
1e1a7a9b83
2 changed files with 3 additions and 8 deletions
|
@ -16,7 +16,6 @@ along with this program; if not, write to the Free Software
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
-}
|
||||
import Text.Pandoc
|
||||
import Text.Pandoc.Class hiding (getCurrentTime, trace)
|
||||
import qualified Text.Pandoc.UTF8 as UTF8
|
||||
import Data.Text (Text)
|
||||
import Data.Time (getCurrentTime)
|
||||
|
@ -38,7 +37,8 @@ readerBench doc (name, reader) =
|
|||
$ writer def{ writerWrapText = WrapAuto} doc
|
||||
in return $ bench (name ++ " reader") $ nf
|
||||
(reader def) inp
|
||||
_ -> trace ("\nCould not find writer for " ++ name ++ "\n") Nothing
|
||||
_ -> Debug.Trace.trace
|
||||
("\nCould not find writer for " ++ name ++ "\n") Nothing
|
||||
|
||||
writerBench :: Pandoc
|
||||
-> (String, WriterOptions -> Pandoc -> Text)
|
||||
|
@ -66,7 +66,7 @@ main = do
|
|||
inp <- UTF8.toText <$> B.readFile "test/testsuite.txt"
|
||||
lalune <- B.readFile "test/lalune.jpg"
|
||||
movie <- B.readFile "test/movie.jpg"
|
||||
time <- getCurrentTime
|
||||
time <- Data.Time.getCurrentTime
|
||||
let setupFakeFiles = modifyPureState $ \st -> st{ stFiles =
|
||||
FileTree $ Map.fromList [
|
||||
("lalune.jpg", FileInfo time lalune),
|
||||
|
|
|
@ -77,11 +77,6 @@ import System.IO.Error (isDoesNotExistError)
|
|||
import Text.Pandoc
|
||||
import Text.Pandoc.BCP47 (Lang (..), parseBCP47)
|
||||
import Text.Pandoc.Builder (setMeta)
|
||||
import Text.Pandoc.Class (PandocIO, extractMedia, fillMediaBag, getLog, openURL,
|
||||
readDataFile, readDefaultDataFile, readFileStrict,
|
||||
report, setInputFiles, setOutputFile,
|
||||
setRequestHeader, setResourcePath, setTrace,
|
||||
setTranslations, setUserDataDir)
|
||||
import Text.Pandoc.Highlighting (highlightingStyles)
|
||||
import Text.Pandoc.Lua (LuaException (..), runLuaFilter)
|
||||
import Text.Pandoc.PDF (makePDF)
|
||||
|
|
Loading…
Add table
Reference in a new issue