Add skeletons for function implementations

This commit is contained in:
2024-09-24 21:14:27 +02:00
parent 9376ede653
commit 61387f6eba
4 changed files with 33 additions and 3 deletions

View File

@@ -5,4 +5,12 @@ module Evaluation.Function
import Types (Function(..), Value(..))
evalFunction :: Function -> Value -> Value
evalFunction = undefined
evalFunction f x = case (f, x) of
(IsImageFilename, String _) ->
Bool undefined
(ConvertedImageFilename, String _) ->
String undefined
_ ->
error "unexpected combination of function and argument type"