Add skeletons for function implementations
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user