summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-01-07 18:00:57 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2022-01-07 18:00:57 -0800
commit2986a06aaadc607f58fcbe28933f14e11346c2d8 (patch)
treeddeb66fcace8193ec0072522bdd7eca939d0e5cf /src
parenta965111680c49f879abdc5f1dad1a03f0c7e1180 (diff)
T.P.Readers.LaTeX.SIunitx: explicit imports.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX/SIunitx.hs41
1 files changed, 38 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX/SIunitx.hs b/src/Text/Pandoc/Readers/LaTeX/SIunitx.hs
index e4738a763..6c22a4ceb 100644
--- a/src/Text/Pandoc/Readers/LaTeX/SIunitx.hs
+++ b/src/Text/Pandoc/Readers/LaTeX/SIunitx.hs
@@ -4,11 +4,46 @@ module Text.Pandoc.Readers.LaTeX.SIunitx
( siunitxCommands )
where
import Text.Pandoc.Builder
+ ( space,
+ subscript,
+ superscript,
+ emph,
+ str,
+ fromList,
+ text,
+ Many(Many, unMany),
+ Inline(Superscript, Str),
+ Inlines )
import Text.Pandoc.Readers.LaTeX.Parsing
+ ( anyControlSeq,
+ braced,
+ bracketed,
+ controlSeq,
+ grouped,
+ isWordTok,
+ keyvals,
+ satisfyTok,
+ skipopts,
+ spaces1,
+ symbol,
+ untokenize,
+ LP )
import Text.Pandoc.Readers.LaTeX.Types
-import Text.Pandoc.Class
-import Text.Pandoc.Parsing hiding (blankline, mathDisplay, mathInline,
- optional, space, spaces, withRaw, (<|>))
+ ( Tok(Tok), TokType(Word, CtrlSeq) )
+import Text.Pandoc.Class.PandocMonad ( PandocMonad )
+import Text.Pandoc.Parsing
+ ( many1,
+ eof,
+ string,
+ satisfy,
+ skipMany,
+ option,
+ many,
+ char,
+ try,
+ skipMany1,
+ runParser,
+ Parser )
import Control.Applicative ((<|>))
import Control.Monad (void)
import qualified Data.Map as M