@@ -310,7 +310,10 @@ Library
310310 ScopedTypeVariables, GeneralizedNewtypeDeriving,
311311 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
312312 FlexibleInstances
313− Hs-Source-Dirs: src, prelude
313+ Hs-Source-Dirs: src
314+ if impl(ghc < 7.10)
315+ Hs-Source-Dirs: prelude
316+ Other-Modules: Prelude
314317
315318 Exposed-Modules: Text.Pandoc,
316319 Text.Pandoc.Options,
@@ -396,9 +399,9 @@ Library
396399 Text.Pandoc.Compat.Time,
397400 Text.Pandoc.Compat.Except,
398401 Text.Pandoc.Compat.TagSoupEntity,
399− Text.Pandoc.Compat.Directory
402+ Text.Pandoc.Compat.Directory,
403+ Text.Pandoc.Compat.Monoid,
400404 Paths_pandoc
401− Prelude
402405
403406 Buildable: True
404407
@@ -429,15 +432,20 @@ Executable pandoc
429432 ScopedTypeVariables, GeneralizedNewtypeDeriving,
430433 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
431434 FlexibleInstances
432− Hs-Source-Dirs: ., prelude
435+ Hs-Source-Dirs: .
436+ if impl(ghc < 7.10)
437+ Hs-Source-Dirs: prelude
438+ Other-Modules: Prelude
433439 Main-Is: pandoc.hs
434440 Buildable: True
435− Other-Modules: Prelude
436− Paths_pandoc
441+ Other-Modules: Paths_pandoc
437442
438443Executable trypandoc
439444 Main-Is: trypandoc.hs
440− Hs-Source-Dirs: trypandoc, prelude
445+ Hs-Source-Dirs: trypandoc
446+ if impl(ghc < 7.10)
447+ Hs-Source-Dirs: prelude
448+ Other-Modules: Prelude
441449 default-language: Haskell2010
442450 if flag(trypandoc)
443451 Build-Depends: base, aeson, pandoc, highlighting-kate,
@@ -445,12 +453,14 @@ Executable trypandoc
445453 Buildable: True
446454 else
447455 Buildable: False
448− Other-Modules: Prelude
449456
450457Test-Suite test-pandoc
451458 Type: exitcode-stdio-1.0
452459 Main-Is: test-pandoc.hs
453− Hs-Source-Dirs: tests, prelude
460+ Hs-Source-Dirs: tests
461+ if impl(ghc < 7.10)
462+ Hs-Source-Dirs: prelude
463+ Other-Modules: Prelude
454464 Build-Depends: base >= 4.2 && < 5,
455465 syb >= 0.1 && < 0.7,
456466 pandoc,
@@ -495,18 +505,19 @@ Test-Suite test-pandoc
495505 Tests.Writers.LaTeX
496506 Tests.Writers.Docx
497507 Tests.Writers.RST
498− Prelude
499508 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
500509 Default-Language: Haskell98
501510
502511benchmark benchmark-pandoc
503512 Type: exitcode-stdio-1.0
504513 Main-Is: benchmark-pandoc.hs
505− Hs-Source-Dirs: benchmark, prelude
514+ Hs-Source-Dirs: benchmark
515+ if impl(ghc < 7.10)
516+ Hs-Source-Dirs: prelude
517+ Other-Modules: Prelude
506518 Build-Depends: pandoc,
507519 base >= 4.2 && < 5,
508520 syb >= 0.1 && < 0.7,
509521 criterion >= 1.0 && < 1.2
510522 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
511523 Default-Language: Haskell98
512− Other-Modules: Prelude