Add ApplyTemplate and use NoToken less
This commit is contained in:
@@ -6,11 +6,17 @@ import Types (Function(..), Value(..))
|
||||
|
||||
evalFunction :: Function -> Value -> Value
|
||||
evalFunction f x = case (f, x) of
|
||||
(JoinPaths, Tuple (String _, String _)) ->
|
||||
String undefined
|
||||
|
||||
(IsImageFilename, String _) ->
|
||||
Bool undefined
|
||||
|
||||
(ConvertedImageFilename, String _) ->
|
||||
String undefined
|
||||
|
||||
(ApplyTemplate, Tuple (Template _, String _)) ->
|
||||
String undefined
|
||||
|
||||
_ ->
|
||||
error "unexpected combination of function and argument type"
|
||||
|
||||
@@ -21,8 +21,8 @@ evalFunctionIO f x = case (f, x) of
|
||||
(MakeDir, String _) ->
|
||||
pure $ Empty
|
||||
|
||||
(RunPandoc, Tuple (String _, String _)) ->
|
||||
pure $ Empty
|
||||
(RunPandoc, String _) ->
|
||||
pure $ String undefined
|
||||
|
||||
_ ->
|
||||
error "unexpected combination of function and argument type"
|
||||
|
||||
Reference in New Issue
Block a user