Change RunPandoc to be more file-centric
This commit is contained in:
parent
2b5f4f8b1e
commit
6ebc3f5e3a
|
@ -110,5 +110,5 @@ convertImage = runFunctionIO ConvertImage
|
||||||
saveFile :: Token (String, FilePath) -> DepGenM ()
|
saveFile :: Token (String, FilePath) -> DepGenM ()
|
||||||
saveFile = runFunctionIO SaveFile
|
saveFile = runFunctionIO SaveFile
|
||||||
|
|
||||||
runPandoc :: Token String -> DepGenM String
|
runPandoc :: Token (FilePath, FilePath) -> DepGenM ()
|
||||||
runPandoc = runFunctionIO RunPandoc
|
runPandoc = runFunctionIO RunPandoc
|
||||||
|
|
|
@ -18,8 +18,8 @@ evalFunctionIO f x = case (f, x) of
|
||||||
(SaveFile, Tuple (String _, String _)) ->
|
(SaveFile, Tuple (String _, String _)) ->
|
||||||
pure $ Empty
|
pure $ Empty
|
||||||
|
|
||||||
(RunPandoc, String _) ->
|
(RunPandoc, Tuple (String _, String _)) ->
|
||||||
pure $ String undefined
|
pure $ Empty
|
||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
error "unexpected combination of function and argument type"
|
error "unexpected combination of function and argument type"
|
||||||
|
|
Loading…
Reference in New Issue