git.iko.soy/typeable/pandoc
on master help sign in
Require safe >= 0.3.18 and remove cpp.
commitf0e4b9cc3cde01d64e25d331c5b4f3d62d2129b5 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 18 Mar 2021, 21:37 (6 years ago) parent1da6208
2 files changed+1−6
pandoc.cabal+1−1 src/Text/Pandoc/Readers/LaTeX.hs−5
pandoc.cabal+1−1
@@ -477,7 +477,7 @@ library
477477 parsec >= 3.1 && < 3.2,
478478 process >= 1.2.3 && < 1.7,
479479 random >= 1 && < 1.3,
480− safe >= 0.3 && < 0.4,
480+ safe >= 0.3.18 && < 0.4,
481481 scientific >= 0.3 && < 0.4,
482482 skylighting >= 0.10.4.1 && < 0.11,
483483 skylighting-core >= 0.10.4.1 && < 0.11,
src/Text/Pandoc/Readers/LaTeX.hs−5
@@ -1,4 +1,3 @@
1−{-# LANGUAGE CPP #-}
21{-# LANGUAGE OverloadedStrings #-}
32{-# LANGUAGE PatternGuards #-}
43{-# LANGUAGE ScopedTypeVariables #-}
@@ -97,11 +96,7 @@ parseLaTeX = do
9796 let doc' = doc bs
9897 let headerLevel (Header n _ _) = [n]
9998 headerLevel _ = []
100−#if MIN_VERSION_safe(0,3,18)
10199 let bottomLevel = minimumBound 1 $ query headerLevel doc'
102−#else
103− let bottomLevel = minimumDef 1 $ query headerLevel doc'
104−#endif
105100 let adjustHeaders m (Header n attr ils) = Header (n+m) attr ils
106101 adjustHeaders _ x = x
107102 let (Pandoc _ bs') =