summaryrefslogtreecommitdiff
path: root/src/Hakyll/TeX/LaTeX.hs
diff options
context:
space:
mode:
authorChris Wells <chris@mathematicaster.org>2025-01-11 10:28:34 -0600
committerChris Wells <chris@mathematicaster.org>2025-01-11 10:28:34 -0600
commit1a3ecbb58d85f70be0625777f9deb9a58907d2e2 (patch)
tree88ab89ecbe8946b06e09ab0e594878f8572e72de /src/Hakyll/TeX/LaTeX.hs
parent42a2d42eecf551dd1990c97c1ae2586cd46674be (diff)
downloadmain-1a3ecbb58d85f70be0625777f9deb9a58907d2e2.tar
main-1a3ecbb58d85f70be0625777f9deb9a58907d2e2.tar.gz
main-1a3ecbb58d85f70be0625777f9deb9a58907d2e2.tar.bz2
main-1a3ecbb58d85f70be0625777f9deb9a58907d2e2.tar.lz
main-1a3ecbb58d85f70be0625777f9deb9a58907d2e2.tar.xz
main-1a3ecbb58d85f70be0625777f9deb9a58907d2e2.tar.zst
main-1a3ecbb58d85f70be0625777f9deb9a58907d2e2.zip
More basic modules for errors and parsers
Diffstat (limited to 'src/Hakyll/TeX/LaTeX.hs')
-rw-r--r--src/Hakyll/TeX/LaTeX.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Hakyll/TeX/LaTeX.hs b/src/Hakyll/TeX/LaTeX.hs
index 8f6d5cc..66f3ba5 100644
--- a/src/Hakyll/TeX/LaTeX.hs
+++ b/src/Hakyll/TeX/LaTeX.hs
@@ -8,11 +8,11 @@ import Prolog
import Hakyll
-rubberPipe :: [String] -> LazyByteString -> Compiler LazyByteString
-rubberPipe = unixFilterLBS "rubber-pipe"
+rubberPipe :: (StringConv s LazyByteString) => [String] -> s -> Compiler LazyByteString
+rubberPipe args = unixFilterLBS "rubber-pipe" args . toSL
compileLatexPdf :: (StringConv s LazyByteString, Traversable t) => t s -> Compiler (t LazyByteString)
-compileLatexPdf = traverse $ rubberPipe [ "--pdf" ] . toSL
+compileLatexPdf = traverse $ rubberPipe [ "--pdf" ]
latexPdfCompiler :: Compiler (Item LazyByteString)
latexPdfCompiler = getResourceLBS >>= compileLatexPdf