Fix some lint issues.
This commit is contained in:
parent
dd1a956a8a
commit
073895c340
2 changed files with 5 additions and 6 deletions
|
@ -79,10 +79,9 @@ letmacro = do
|
|||
|
||||
checkGlobal :: PandocMonad m => LP m [(Text, Macro)] -> LP m [(Text, Macro)]
|
||||
checkGlobal p =
|
||||
(do controlSeq "global"
|
||||
ms <- p
|
||||
return $ map (\(n, Macro _ expand arg optarg contents) ->
|
||||
(n, Macro GlobalScope expand arg optarg contents)) ms)
|
||||
(controlSeq "global" *>
|
||||
(map (\(n, Macro _ expand arg optarg contents) ->
|
||||
(n, Macro GlobalScope expand arg optarg contents)) <$> p))
|
||||
<|> p
|
||||
|
||||
edefmacro :: PandocMonad m => LP m [(Text, Macro)]
|
||||
|
|
|
@ -224,8 +224,8 @@ instance HasIncludeFiles LaTeXState where
|
|||
|
||||
instance HasMacros LaTeXState where
|
||||
extractMacros st = NonEmpty.head $ sMacros st
|
||||
updateMacros f st = st{ sMacros = f (NonEmpty.head $ sMacros st)
|
||||
:| (NonEmpty.tail $ sMacros st) }
|
||||
updateMacros f st = st{ sMacros = f (NonEmpty.head (sMacros st))
|
||||
:| NonEmpty.tail (sMacros st) }
|
||||
|
||||
instance HasReaderOptions LaTeXState where
|
||||
extractReaderOptions = sOptions
|
||||
|
|
Loading…
Add table
Reference in a new issue