@@ -377,7 +377,8 @@ flag trypandoc
377 Default: False
377 Default: False
380− build-depends: base >= 4.9 && < 5,
380+ build-depends: base-noprelude >= 4.9 && < 5,
381 syb >= 0.1 && < 0.8,
382 syb >= 0.1 && < 0.8,
382 containers >= 0.4.2.1 && < 0.7,
383 containers >= 0.4.2.1 && < 0.7,
383 unordered-containers >= 0.2 && < 0.3,
384 unordered-containers >= 0.2 && < 0.3,
@@ -440,10 +441,6 @@ library
440 build-depends: basement >= 0.0.10,
441 build-depends: basement >= 0.0.10,
441 foundation >= 0.0.23
442 foundation >= 0.0.23
442 -- basement 0.0.9 won't build on 32-bit windows.
443 -- basement 0.0.9 won't build on 32-bit windows.
444− hs-source-dirs: prelude
445− other-modules: Prelude
446− build-depends: base-compat >= 0.9
447 if os(windows)
444 if os(windows)
448 cpp-options: -D_WINDOWS
445 cpp-options: -D_WINDOWS
@@ -471,7 +468,8 @@ library
472 default-language: Haskell2010
469 default-language: Haskell2010
473 other-extensions: NoImplicitPrelude
470 other-extensions: NoImplicitPrelude
474− hs-source-dirs: src
471+ hs-source-dirs: src,
476 exposed-modules: Text.Pandoc,
474 exposed-modules: Text.Pandoc,
477 Text.Pandoc.App,
475 Text.Pandoc.App,
@@ -565,7 +563,8 @@ library
565 Text.Pandoc.ImageSize,
563 Text.Pandoc.ImageSize,
566 Text.Pandoc.BCP47,
564 Text.Pandoc.BCP47,
567 Text.Pandoc.Class
565 Text.Pandoc.Class
566+ other-modules: Prelude,
568− other-modules: Text.Pandoc.App.CommandLineOptions,
567+ Text.Pandoc.App.CommandLineOptions,
569 Text.Pandoc.App.FormatHeuristics,
568 Text.Pandoc.App.FormatHeuristics,
570 Text.Pandoc.App.Opt,
569 Text.Pandoc.App.Opt,
571 Text.Pandoc.App.OutputSettings,
570 Text.Pandoc.App.OutputSettings,
@@ -640,19 +639,19 @@ library
640 buildable: True
639 buildable: True
642executable pandoc
641executable pandoc
643− build-depends: pandoc, base >= 4.8 && < 5
642+ build-depends: pandoc,
644− if impl(ghc < 8.4)
643+ base-noprelude >= 4.8 && < 5,
645− hs-source-dirs: prelude
646− other-modules: Prelude
647− build-depends: base-compat >= 0.9
644+ base-compat >= 0.9
648 if flag(static)
645 if flag(static)
649 ld-options: -static
646 ld-options: -static
650 default-language: Haskell2010
647 default-language: Haskell2010
651 other-extensions: NoImplicitPrelude
648 other-extensions: NoImplicitPrelude
652 hs-source-dirs: .
649 hs-source-dirs: .
653 main-is: pandoc.hs
651 main-is: pandoc.hs
654 buildable: True
652 buildable: True
655− other-modules: Paths_pandoc
653+ other-modules: Paths_pandoc,
656 ghc-options: -rtsopts -with-rtsopts=-K16m -threaded
655 ghc-options: -rtsopts -with-rtsopts=-K16m -threaded
657 -Wall -fno-warn-unused-do-bind
656 -Wall -fno-warn-unused-do-bind
658 -Wincomplete-record-updates
657 -Wincomplete-record-updates
@@ -667,19 +666,16 @@ executable pandoc
668executable trypandoc
667executable trypandoc
669 main-is: trypandoc.hs
668 main-is: trypandoc.hs
670− hs-source-dirs: trypandoc
669+ hs-source-dirs: trypandoc, prelude
671 default-language: Haskell2010
670 default-language: Haskell2010
672 other-extensions: NoImplicitPrelude
671 other-extensions: NoImplicitPrelude
672+ other-modules: Prelude
673 if flag(trypandoc)
673 if flag(trypandoc)
674− build-depends: base, aeson, pandoc,
674+ build-depends: base-noprelude, base-compat >= 0.9, aeson, pandoc,
675 text, wai-extra, wai >= 0.3, http-types
675 text, wai-extra, wai >= 0.3, http-types
676 buildable: True
676 buildable: True
678 buildable: False
678 buildable: False
680− hs-source-dirs: prelude
681− other-modules: Prelude
682− build-depends: base-compat >= 0.9
683 ghc-options: -rtsopts -with-rtsopts=-K16m -threaded
679 ghc-options: -rtsopts -with-rtsopts=-K16m -threaded
684 -Wall -fno-warn-unused-do-bind
680 -Wall -fno-warn-unused-do-bind
685 -Wincomplete-record-updates
681 -Wincomplete-record-updates
@@ -695,18 +691,16 @@ executable trypandoc
695benchmark weigh-pandoc
691benchmark weigh-pandoc
696 type: exitcode-stdio-1.0
692 type: exitcode-stdio-1.0
697 main-is: weigh-pandoc.hs
693 main-is: weigh-pandoc.hs
698− hs-source-dirs: benchmark
694+ hs-source-dirs: benchmark,
699 build-depends: pandoc,
696 build-depends: pandoc,
700− base >= 4.8 && < 5,
697+ base-noprelude >= 4.8 && < 5,
702 weigh >= 0.0 && < 0.1,
700 weigh >= 0.0 && < 0.1,
703 mtl >= 2.2 && < 2.3
701 mtl >= 2.2 && < 2.3
705− hs-source-dirs: prelude
706− other-modules: Prelude
707− build-depends: base-compat >= 0.9
708 default-language: Haskell2010
702 default-language: Haskell2010
709− other-extensions: NoImplicitPrelude
703+ other-modules: Prelude
710 ghc-options: -rtsopts -with-rtsopts=-K16m -threaded
704 ghc-options: -rtsopts -with-rtsopts=-K16m -threaded
711 -Wall -fno-warn-unused-do-bind
705 -Wall -fno-warn-unused-do-bind
712 -Wincomplete-record-updates
706 -Wincomplete-record-updates
@@ -723,8 +717,10 @@ benchmark weigh-pandoc
723test-suite test-pandoc
717test-suite test-pandoc
724 type: exitcode-stdio-1.0
718 type: exitcode-stdio-1.0
725 main-is: test-pandoc.hs
719 main-is: test-pandoc.hs
726− hs-source-dirs: test
720+ hs-source-dirs: test,
727− build-depends: base >= 4.8 && < 5,
722+ build-depends: base-noprelude >= 4.8 && < 5,
729 pandoc-types >= 1.20 && < 1.21,
725 pandoc-types >= 1.20 && < 1.21,
730 mtl >= 2.2 && < 2.3,
726 mtl >= 2.2 && < 2.3,
@@ -750,11 +746,8 @@ test-suite test-pandoc
750 xml >= 1.3.12 && < 1.4,
746 xml >= 1.3.12 && < 1.4,
751 doctemplates >= 0.8 && < 0.9,
747 doctemplates >= 0.8 && < 0.9,
752 Glob >= 0.7 && < 0.11
748 Glob >= 0.7 && < 0.11
754− hs-source-dirs: prelude
755− other-modules: Prelude
749+ other-modules: Prelude
756− build-depends: base-compat >= 0.9
757− other-modules: Tests.Old
750+ Tests.Old
758 Tests.Command
751 Tests.Command
759 Tests.Helpers
752 Tests.Helpers
760 Tests.Lua
753 Tests.Lua
@@ -809,7 +802,6 @@ test-suite test-pandoc
809 if os(windows)
802 if os(windows)
810 cpp-options: -D_WINDOWS
803 cpp-options: -D_WINDOWS
811 default-language: Haskell2010
804 default-language: Haskell2010
812− other-extensions: NoImplicitPrelude
813 ghc-options: -rtsopts -with-rtsopts=-K16m -threaded
805 ghc-options: -rtsopts -with-rtsopts=-K16m -threaded
814 -Wall -fno-warn-unused-do-bind
806 -Wall -fno-warn-unused-do-bind
815 -Wincomplete-record-updates
807 -Wincomplete-record-updates
@@ -826,19 +818,17 @@ test-suite test-pandoc
826benchmark benchmark-pandoc
818benchmark benchmark-pandoc
827 type: exitcode-stdio-1.0
819 type: exitcode-stdio-1.0
828 main-is: benchmark-pandoc.hs
820 main-is: benchmark-pandoc.hs
829− hs-source-dirs: benchmark
821+ hs-source-dirs: benchmark,
830 build-depends: pandoc,
823 build-depends: pandoc,
831 time, bytestring, containers,
824 time, bytestring, containers,
832− base >= 4.8 && < 5,
825+ base-noprelude >= 4.8 && < 5,
833 text >= 1.1.1.0 && < 1.3,
827 text >= 1.1.1.0 && < 1.3,
834 mtl >= 2.2 && < 2.3,
828 mtl >= 2.2 && < 2.3,
835 criterion >= 1.0 && < 1.6
829 criterion >= 1.0 && < 1.6
837− hs-source-dirs: prelude
838− other-modules: Prelude
839− build-depends: base-compat >= 0.9
840 default-language: Haskell2010
830 default-language: Haskell2010
841− other-extensions: NoImplicitPrelude
831+ other-modules: Prelude
842 ghc-options: -rtsopts -with-rtsopts=-K16m -threaded
832 ghc-options: -rtsopts -with-rtsopts=-K16m -threaded
843 -Wall -fno-warn-unused-do-bind
833 -Wall -fno-warn-unused-do-bind
844 -Wincomplete-record-updates
834 -Wincomplete-record-updates