Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gitit.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Library
mtl,
old-time,
temporary,
pandoc >= 2.9 && < 2.20 || >= 3.0 && < 3.8,
pandoc >= 2.9 && < 2.20 || >= 3.0 && < 3.11,
pandoc-types >= 1.20 && < 1.24,
skylighting >= 0.8.2.3 && < 0.15,
bytestring,
Expand Down Expand Up @@ -162,7 +162,7 @@ Library
json >= 0.4 && < 0.12,
uri-bytestring >= 0.2.3.3,
split,
hoauth2 >= 2.3.0 && < 2.15,
hoauth2 >= 2.3.0 && < 2.16,
xml-conduit >= 1.5 && < 1.11,
http-conduit >= 2.1.6 && < 2.4,
http-client-tls >= 0.2.2 && < 0.4,
Expand Down
4 changes: 4 additions & 0 deletions src/Network/Gitit/Authentication/Github.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ import qualified Data.ByteString.Char8 as BS
import qualified Data.ByteString.Lazy as BSL
import qualified URI.ByteString as URI
import Network.HTTP.Conduit
#if MIN_VERSION_hoauth2(2,15,0)
import Network.OAuth2
#else
import Network.OAuth.OAuth2
#endif
import Control.Monad (liftM, mplus, mzero)
import Data.Maybe
import Data.Aeson
Expand Down
4 changes: 4 additions & 0 deletions src/Network/Gitit/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ import Paths_gitit (getDataFileName)
import System.FilePath ((</>))
import Text.Pandoc hiding (ERROR, WARNING, MathJax, MathML, WebTeX, getDataFileName)
import qualified Control.Exception as E
#if MIN_VERSION_hoauth2(2,15,0)
import Network.OAuth2 (OAuth2(..))
#else
import Network.OAuth.OAuth2 (OAuth2(..))
#endif
import URI.ByteString (parseURI, laxURIParserOptions)
import qualified Data.ByteString.Char8 as BS
import Network.Gitit.Compat.Except
Expand Down
4 changes: 4 additions & 0 deletions src/Network/Gitit/ContentTransformer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,11 @@ pandocToHtml pandocContents = do
MathJax u -> Pandoc.MathJax $ T.pack u
RawTeX -> Pandoc.PlainMath
, writerTableOfContents = toc
#if MIN_VERSION_pandoc(3,8,0)
, writerHighlightMethod = Skylighting pygments
#else
, writerHighlightStyle = Just pygments
#endif
, writerExtensions = if bird
then enableExtension Ext_literate_haskell
$ writerExtensions def
Expand Down
4 changes: 4 additions & 0 deletions src/Network/Gitit/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ import Data.FileStore.Types
import Network.Gitit.Server
import Text.HTML.TagSoup.Entity (lookupEntity)
import Data.Char (isSpace)
#if MIN_VERSION_hoauth2(2,15,0)
import Network.OAuth2
#else
import Network.OAuth.OAuth2
#endif
import Text.Blaze.Html (Html)

data PageType = Markdown
Expand Down
Loading