git.iko.soy/typeable/pandoc
on master help sign in
Avoid unnecessary use of NoImplicitPrelude pragma (#7089)
commitd202f7eb77242bd2d9395b950b74fc9b22f9ae13 authorAlbert Krewinkel <albert@zeitkraut.de> dateSun 7 Feb 2021, 19:02 (6 years ago) parentf7be8d0
59 files changed+1−112
app/pandoc.hs−2 benchmark/benchmark-pandoc.hs−2 benchmark/weigh-pandoc.hs−2 pandoc.cabal+1−1 src/Text/Pandoc/UTF8.hs−1 test/Tests/Command.hs−2 test/Tests/Helpers.hs−2 test/Tests/Lua.hs−2 test/Tests/Old.hs−2 test/Tests/Readers/Creole.hs−2 test/Tests/Readers/Docx.hs−2 test/Tests/Readers/DokuWiki.hs−2 test/Tests/Readers/EPUB.hs−2 test/Tests/Readers/FB2.hs−2 test/Tests/Readers/HTML.hs−2 test/Tests/Readers/JATS.hs−2 test/Tests/Readers/Jira.hs−1 test/Tests/Readers/LaTeX.hs−2 test/Tests/Readers/Man.hs−1 test/Tests/Readers/Markdown.hs−2 test/Tests/Readers/Muse.hs−2 test/Tests/Readers/Odt.hs−2 test/Tests/Readers/Org/Block.hs−2 test/Tests/Readers/Org/Block/CodeBlock.hs−2 test/Tests/Readers/Org/Block/Figure.hs−2 test/Tests/Readers/Org/Block/Header.hs−2 test/Tests/Readers/Org/Block/List.hs−2 test/Tests/Readers/Org/Block/Table.hs−2 test/Tests/Readers/Org/Directive.hs−2 test/Tests/Readers/Org/Inline.hs−2 test/Tests/Readers/Org/Inline/Citation.hs−2 test/Tests/Readers/Org/Inline/Note.hs−2 test/Tests/Readers/Org/Inline/Smart.hs−2 test/Tests/Readers/Org/Meta.hs−2 test/Tests/Readers/Org/Shared.hs−2 test/Tests/Readers/RST.hs−2 test/Tests/Readers/Txt2Tags.hs−2 test/Tests/Shared.hs−2 test/Tests/Writers/AnnotatedTable.hs−1 test/Tests/Writers/AsciiDoc.hs−2 test/Tests/Writers/ConTeXt.hs−2 test/Tests/Writers/Docbook.hs−2 test/Tests/Writers/Docx.hs−2 test/Tests/Writers/FB2.hs−2 test/Tests/Writers/HTML.hs−2 test/Tests/Writers/JATS.hs−2 test/Tests/Writers/LaTeX.hs−2 test/Tests/Writers/Markdown.hs−2 test/Tests/Writers/Ms.hs−2 test/Tests/Writers/Muse.hs−1 test/Tests/Writers/Native.hs−2 test/Tests/Writers/OOXML.hs−2 test/Tests/Writers/Org.hs−2 test/Tests/Writers/Plain.hs−2 test/Tests/Writers/Powerpoint.hs−2 test/Tests/Writers/RST.hs−2 test/Tests/Writers/TEI.hs−2 test/test-pandoc.hs−2 trypandoc/trypandoc.hs−2
app/pandoc.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{- |
32 Module : Main
43 Copyright : Copyright (C) 2006-2021 John MacFarlane
@@ -12,7 +11,6 @@ Parses command-line options and calls the appropriate readers and
1211writers.
1312-}
1413module Main where
15−import Prelude
1614import qualified Control.Exception as E
1715import Text.Pandoc.App (convertWithOpts, defaultOpts, options, parseOptions)
1816import Text.Pandoc.Error (handleError)
benchmark/benchmark-pandoc.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{-
43Copyright (C) 2012-2021 John MacFarlane <jgm@berkeley.edu>
@@ -17,7 +16,6 @@ You should have received a copy of the GNU General Public License
1716along with this program; if not, write to the Free Software
1817Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1918-}
20−import Prelude
2119import Text.Pandoc
2220import Text.Pandoc.MIME
2321import Control.Monad.Except (throwError, liftIO)
benchmark/weigh-pandoc.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Main
@@ -11,7 +10,6 @@
1110
1211Benchmarks to determine resource use of readers and writers.
1312-}
14−import Prelude
1513import Weigh
1614import Text.Pandoc
1715import Data.Text (Text, unpack)
pandoc.cabal+1−1
@@ -400,7 +400,6 @@ common common-options
400400 default-language: Haskell2010
401401 build-depends: base >= 4.9 && < 5,
402402 text >= 1.1.1.0 && < 1.3
403− other-extensions: NoImplicitPrelude
404403 ghc-options: -Wall -fno-warn-unused-do-bind
405404 -Wincomplete-record-updates
406405 -Wnoncanonical-monad-instances
@@ -409,6 +408,7 @@ common common-options
409408 hs-source-dirs: prelude
410409 other-modules: Prelude
411410 build-depends: base-compat >= 0.9
411+ other-extensions: NoImplicitPrelude
412412
413413 if os(windows)
414414 cpp-options: -D_WINDOWS
src/Text/Pandoc/UTF8.hs−1
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Text.Pandoc.UTF8
test/Tests/Command.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE TupleSections #-}
32{- |
43 Module : Tests.Command
@@ -14,7 +13,6 @@ Run commands, and test results, defined in markdown files.
1413module Tests.Command (runTest, tests)
1514where
1615
17−import Prelude
1816import Data.Algorithm.Diff
1917import System.Environment.Executable (getExecutablePath)
2018import qualified Data.ByteString as BS
test/Tests/Helpers.hs−2
@@ -1,5 +1,4 @@
11{-# LANGUAGE CPP #-}
2−{-# LANGUAGE NoImplicitPrelude #-}
32{-# LANGUAGE FlexibleInstances #-}
43{- |
54 Module : Tests.Helpers
@@ -22,7 +21,6 @@ module Tests.Helpers ( test
2221 )
2322 where
2423
25−import Prelude
2624import Data.Algorithm.Diff
2725import qualified Data.Map as M
2826import Data.Text (Text, unpack)
test/Tests/Lua.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{-# LANGUAGE ScopedTypeVariables #-}
43{- |
@@ -14,7 +13,6 @@ Unit and integration tests for pandoc's Lua subsystem.
1413-}
1514module Tests.Lua ( runLuaTest, tests ) where
1615
17−import Prelude
1816import Control.Monad (when)
1917import System.FilePath ((</>))
2018import Test.Tasty (TestTree, localOption)
test/Tests/Old.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE TupleSections #-}
32{- |
43 Module : Tests.Old
@@ -13,7 +12,6 @@
1312-}
1413module Tests.Old (tests) where
1514
16−import Prelude
1715import Data.Algorithm.Diff
1816import System.Exit
1917import System.FilePath ((<.>), (</>))
test/Tests/Readers/Creole.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Creole
@@ -14,7 +13,6 @@ Tests for the creole reader.
1413-}
1514module Tests.Readers.Creole (tests) where
1615
17−import Prelude
1816import Data.Text (Text)
1917import qualified Data.Text as T
2018import Test.Tasty
test/Tests/Readers/Docx.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Docx
@@ -13,7 +12,6 @@ Tests for the word docx reader.
1312-}
1413module Tests.Readers.Docx (tests) where
1514
16−import Prelude
1715import Codec.Archive.Zip
1816import qualified Data.ByteString as BS
1917import qualified Data.ByteString.Lazy as B
test/Tests/Readers/DokuWiki.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{-# LANGUAGE ScopedTypeVariables #-}
43{- |
@@ -14,7 +13,6 @@ Tests for DokuWiki reader.
1413-}
1514module Tests.Readers.DokuWiki (tests) where
1615
17−import Prelude
1816import Data.Text (Text)
1917import qualified Data.Text as T
2018import Test.Tasty
test/Tests/Readers/EPUB.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{- |
32 Module : Tests.Readers.EPUB
43 Copyright : © 2006-2021 John MacFarlane
@@ -12,7 +11,6 @@ Tests for the EPUB mediabag.
1211-}
1312module Tests.Readers.EPUB (tests) where
1413
15−import Prelude
1614import qualified Data.ByteString.Lazy as BL
1715import qualified Data.Text as T
1816import Test.Tasty
test/Tests/Readers/FB2.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{- |
32 Module : Tests.Readers.FB2
43 Copyright : © 2018-2020 Alexander Krotov
@@ -12,7 +11,6 @@ Tests for the EPUB mediabag.
1211-}
1312module Tests.Readers.FB2 (tests) where
1413
15−import Prelude
1614import Test.Tasty
1715import Tests.Helpers
1816import Test.Tasty.Golden (goldenVsString)
test/Tests/Readers/HTML.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.HTML
@@ -13,7 +12,6 @@ Tests for the HTML reader.
1312-}
1413module Tests.Readers.HTML (tests) where
1514
16−import Prelude
1715import Data.Text (Text)
1816import qualified Data.Text as T
1917import Test.Tasty
test/Tests/Readers/JATS.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.JATS
@@ -13,7 +12,6 @@ Tests for the JATS reader.
1312-}
1413module Tests.Readers.JATS (tests) where
1514
16−import Prelude
1715import Data.Text (Text)
1816import Test.Tasty
1917import Tests.Helpers
test/Tests/Readers/Jira.hs−1
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{-# LANGUAGE ScopedTypeVariables #-}
43{- |
test/Tests/Readers/LaTeX.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.LaTeX
@@ -13,7 +12,6 @@ Tests for the LaTeX reader.
1312-}
1413module Tests.Readers.LaTeX (tests) where
1514
16−import Prelude
1715import Data.Text (Text)
1816import qualified Data.Text as T
1917import qualified Text.Pandoc.UTF8 as UTF8
test/Tests/Readers/Man.hs−1
@@ -13,7 +13,6 @@ Tests for the Man reader.
1313-}
1414module Tests.Readers.Man (tests) where
1515
16−import Prelude
1716import Data.Text (Text)
1817import Test.Tasty
1918import Tests.Helpers
test/Tests/Readers/Markdown.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Markdown
@@ -13,7 +12,6 @@ Tests for the Markdown reader.
1312-}
1413module Tests.Readers.Markdown (tests) where
1514
16−import Prelude
1715import Data.Text (Text, unpack)
1816import qualified Data.Text as T
1917import Test.Tasty
test/Tests/Readers/Muse.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Muse
@@ -13,7 +12,6 @@ Tests for the Muse reader.
1312-}
1413module Tests.Readers.Muse (tests) where
1514
16−import Prelude
1715import Data.List (intersperse)
1816import Data.Monoid (Any (..))
1917import Data.Text (Text)
test/Tests/Readers/Odt.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Odt
@@ -14,7 +13,6 @@ Tests for the ODT reader.
1413-}
1514module Tests.Readers.Odt (tests) where
1615
17−import Prelude
1816import Control.Monad (liftM)
1917import qualified Data.ByteString as BS
2018import qualified Data.ByteString.Lazy as B
test/Tests/Readers/Org/Block.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Block
@@ -13,7 +12,6 @@ Tests parsing of org blocks.
1312-}
1413module Tests.Readers.Org.Block (tests) where
1514
16−import Prelude
1715import Test.Tasty (TestTree, testGroup)
1816import Tests.Helpers ((=?>))
1917import Tests.Readers.Org.Shared ((=:), spcSep)
test/Tests/Readers/Org/Block/CodeBlock.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Block.CodeBlock
@@ -13,7 +12,6 @@ Test parsing of org code blocks.
1312-}
1413module Tests.Readers.Org.Block.CodeBlock (tests) where
1514
16−import Prelude
1715import Test.Tasty (TestTree)
1816import Tests.Helpers ((=?>))
1917import Tests.Readers.Org.Shared ((=:), spcSep)
test/Tests/Readers/Org/Block/Figure.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Block.Figure
@@ -13,7 +12,6 @@ Test parsing of org figures.
1312-}
1413module Tests.Readers.Org.Block.Figure (tests) where
1514
16−import Prelude
1715import Test.Tasty (TestTree)
1816import Tests.Helpers ((=?>))
1917import Tests.Readers.Org.Shared ((=:))
test/Tests/Readers/Org/Block/Header.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Block.Header
@@ -13,7 +12,6 @@ Test parsing of org header blocks.
1312-}
1413module Tests.Readers.Org.Block.Header (tests) where
1514
16−import Prelude
1715import Test.Tasty (TestTree, testGroup)
1816import Tests.Helpers ((=?>))
1917import Tests.Readers.Org.Shared ((=:), spcSep, tagSpan)
test/Tests/Readers/Org/Block/List.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Block.Header
@@ -13,7 +12,6 @@ Test parsing of org lists.
1312-}
1413module Tests.Readers.Org.Block.List (tests) where
1514
16−import Prelude
1715import Test.Tasty (TestTree)
1816import Tests.Helpers ((=?>))
1917import Tests.Readers.Org.Shared ((=:), spcSep)
test/Tests/Readers/Org/Block/Table.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Block.Table
@@ -13,7 +12,6 @@ Test parsing of org tables.
1312-}
1413module Tests.Readers.Org.Block.Table (tests) where
1514
16−import Prelude
1715import Test.Tasty (TestTree)
1816import Tests.Helpers ((=?>))
1917import Tests.Readers.Org.Shared ((=:), spcSep)
test/Tests/Readers/Org/Directive.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Directive
@@ -13,7 +12,6 @@ Tests parsing of org directives (like @#+OPTIONS@).
1312-}
1413module Tests.Readers.Org.Directive (tests) where
1514
16−import Prelude
1715import Data.Time (UTCTime (UTCTime), secondsToDiffTime)
1816import Data.Time.Calendar (Day (ModifiedJulianDay))
1917import Test.Tasty (TestTree, testGroup)
test/Tests/Readers/Org/Inline.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Inline
@@ -13,7 +12,6 @@ Tests parsing of org inlines.
1312-}
1413module Tests.Readers.Org.Inline (tests) where
1514
16−import Prelude
1715import Data.List (intersperse)
1816import Test.Tasty (TestTree, testGroup)
1917import Tests.Helpers ((=?>))
test/Tests/Readers/Org/Inline/Citation.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Inline.Citation
@@ -13,7 +12,6 @@ Test parsing of citations in org input.
1312-}
1413module Tests.Readers.Org.Inline.Citation (tests) where
1514
16−import Prelude
1715import Test.Tasty (TestTree, testGroup)
1816import Tests.Helpers ((=?>))
1917import Tests.Readers.Org.Shared ((=:))
test/Tests/Readers/Org/Inline/Note.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Inline.Note
@@ -13,7 +12,6 @@ Test parsing of footnotes in org input.
1312-}
1413module Tests.Readers.Org.Inline.Note (tests) where
1514
16−import Prelude
1715import Test.Tasty (TestTree)
1816import Tests.Helpers ((=?>))
1917import Tests.Readers.Org.Shared ((=:))
test/Tests/Readers/Org/Inline/Smart.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Inline.Smart
@@ -13,7 +12,6 @@ Test smart parsing of quotes, apostrophe, etc.
1312-}
1413module Tests.Readers.Org.Inline.Smart (tests) where
1514
16−import Prelude
1715import Data.Text (Text)
1816import Test.Tasty (TestTree)
1917import Tests.Helpers ((=?>), purely, test)
test/Tests/Readers/Org/Meta.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Meta
@@ -13,7 +12,6 @@ Tests parsing of org meta data (mostly lines starting with @#+@).
1312-}
1413module Tests.Readers.Org.Meta (tests) where
1514
16−import Prelude
1715import Test.Tasty (TestTree, testGroup)
1816import Tests.Helpers ((=?>))
1917import Tests.Readers.Org.Shared ((=:), spcSep)
test/Tests/Readers/Org/Shared.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Org.Shared
@@ -18,7 +17,6 @@ module Tests.Readers.Org.Shared
1817 , tagSpan
1918 ) where
2019
21−import Prelude
2220import Data.List (intersperse)
2321import Data.Text (Text)
2422import Tests.Helpers (ToString, purely, test)
test/Tests/Readers/RST.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{-# LANGUAGE ScopedTypeVariables #-}
43{- |
@@ -14,7 +13,6 @@ Tests for the RST reader.
1413-}
1514module Tests.Readers.RST (tests) where
1615
17−import Prelude
1816import Data.Text (Text)
1917import qualified Data.Text as T
2018import Test.Tasty
test/Tests/Readers/Txt2Tags.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Readers.Txt2Tags
@@ -14,7 +13,6 @@ Tests for the Txt2Tags reader.
1413-}
1514module Tests.Readers.Txt2Tags (tests) where
1615
17−import Prelude
1816import Data.List (intersperse)
1917import Data.Text (Text)
2018import qualified Data.Text as T
test/Tests/Shared.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Shared
@@ -13,7 +12,6 @@ Tests for functions used in many parts of the library.
1312-}
1413module Tests.Shared (tests) where
1514
16−import Prelude
1715import System.FilePath.Posix (joinPath)
1816import Test.Tasty
1917import Test.Tasty.HUnit (assertBool, testCase, (@?=))
test/Tests/Writers/AnnotatedTable.hs−1
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Tests.Writers.AnnotatedTable
test/Tests/Writers/AsciiDoc.hs−2
@@ -1,8 +1,6 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.AsciiDoc (tests) where
43
5−import Prelude
64import Data.Text (unpack)
75import Test.Tasty
86import Tests.Helpers
test/Tests/Writers/ConTeXt.hs−2
@@ -1,8 +1,6 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.ConTeXt (tests) where
43
5−import Prelude
64import Data.Text (unpack, pack)
75import Test.Tasty
86import Test.Tasty.QuickCheck
test/Tests/Writers/Docbook.hs−2
@@ -1,8 +1,6 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.Docbook (tests) where
43
5−import Prelude
64import Data.Text (unpack)
75import Test.Tasty
86import Tests.Helpers
test/Tests/Writers/Docx.hs−2
@@ -1,7 +1,5 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21module Tests.Writers.Docx (tests) where
32
4−import Prelude
53import Text.Pandoc
64import Test.Tasty
75import Tests.Writers.OOXML
test/Tests/Writers/FB2.hs−2
@@ -1,8 +1,6 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.FB2 (tests) where
43
5−import Prelude
64import Test.Tasty
75import Tests.Helpers
86import Text.Pandoc
test/Tests/Writers/HTML.hs−2
@@ -1,8 +1,6 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.HTML (tests) where
43
5−import Prelude
64import Data.Text (unpack)
75import Test.Tasty
86import Tests.Helpers
test/Tests/Writers/JATS.hs−2
@@ -1,8 +1,6 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.JATS (tests) where
43
5−import Prelude
64import Data.Text (unpack)
75import Test.Tasty
86import Tests.Helpers
test/Tests/Writers/LaTeX.hs−2
@@ -1,8 +1,6 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.LaTeX (tests) where
43
5−import Prelude
64import Data.Text (unpack)
75import Test.Tasty
86import Tests.Helpers
test/Tests/Writers/Markdown.hs−2
@@ -1,9 +1,7 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
43module Tests.Writers.Markdown (tests) where
54
6−import Prelude
75import Data.Text (unpack)
86import Test.Tasty
97import Tests.Helpers
test/Tests/Writers/Ms.hs−2
@@ -1,8 +1,6 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.Ms (tests) where
43
5−import Prelude
64import Test.Tasty
75import Tests.Helpers
86import Text.Pandoc
test/Tests/Writers/Muse.hs−1
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.Muse (tests) where
43
test/Tests/Writers/Native.hs−2
@@ -1,7 +1,5 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21module Tests.Writers.Native (tests) where
32
4−import Prelude
53import Data.Text (unpack)
64import Test.Tasty
75import Test.Tasty.QuickCheck
test/Tests/Writers/OOXML.hs−2
@@ -1,10 +1,8 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE PatternGuards #-}
32{-# LANGUAGE OverloadedStrings #-}
43
54module Tests.Writers.OOXML (ooxmlTest) where
65
7−import Prelude
86import Text.Pandoc
97import Test.Tasty
108import Test.Tasty.Golden.Advanced
test/Tests/Writers/Org.hs−2
@@ -1,8 +1,6 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.Org (tests) where
43
5−import Prelude
64import Test.Tasty
75import Tests.Helpers
86import Text.Pandoc
test/Tests/Writers/Plain.hs−2
@@ -1,8 +1,6 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.Plain (tests) where
43
5−import Prelude
64import Test.Tasty
75import Tests.Helpers
86import Text.Pandoc
test/Tests/Writers/Powerpoint.hs−2
@@ -1,7 +1,5 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21module Tests.Writers.Powerpoint (tests) where
32
4−import Prelude
53import Tests.Writers.OOXML (ooxmlTest)
64import Text.Pandoc
75import Test.Tasty
test/Tests/Writers/RST.hs−2
@@ -1,8 +1,6 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.RST (tests) where
43
5−import Prelude
64import Control.Monad.Identity
75import Test.Tasty
86import Test.Tasty.HUnit
test/Tests/Writers/TEI.hs−2
@@ -1,8 +1,6 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32module Tests.Writers.TEI (tests) where
43
5−import Prelude
64import Test.Tasty
75import Tests.Helpers
86import Text.Pandoc
test/test-pandoc.hs−2
@@ -1,9 +1,7 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# OPTIONS_GHC -Wall #-}
32
43module Main where
54
6−import Prelude
75import System.Environment (getArgs)
86import qualified Control.Exception as E
97import Text.Pandoc.App (convertWithOpts, defaultOpts, options,
trypandoc/trypandoc.hs−2
@@ -1,4 +1,3 @@
1−{-# LANGUAGE NoImplicitPrelude #-}
21{-# LANGUAGE OverloadedStrings #-}
32{- |
43 Module : Main
@@ -12,7 +11,6 @@
1211Provides a webservice which allows to try pandoc in the browser.
1312-}
1413module Main where
15−import Prelude
1614import Network.Wai.Handler.CGI
1715import Network.Wai
1816import Control.Applicative ((<$>))