summaryrefslogtreecommitdiff
path: root/src/Test/Builtins.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-11-29 20:52:20 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2024-11-29 20:52:20 +0100
commit56878ad193071539a1fd83298c4509fe21b880fd (patch)
tree15e32532b7939cdb7b65d45b586bda5b82b82bdb /src/Test/Builtins.hs
parent604d44dce0971443159e8fc35ee2b033ff958ac5 (diff)
Special "builtin" value for SourceLine
Diffstat (limited to 'src/Test/Builtins.hs')
-rw-r--r--src/Test/Builtins.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Test/Builtins.hs b/src/Test/Builtins.hs
index a36505a..a676a35 100644
--- a/src/Test/Builtins.hs
+++ b/src/Test/Builtins.hs
@@ -22,7 +22,7 @@ getArg args = fromMaybe (error "parameter mismatch") . getArgMb args
getArgMb :: ExprType a => FunctionArguments SomeVarValue -> Maybe ArgumentKeyword -> Maybe a
getArgMb (FunctionArguments args) kw = do
- fromSomeVarValue (SourceLine "") (VarName "") =<< M.lookup kw args
+ fromSomeVarValue SourceLineBuiltin (VarName "") =<< M.lookup kw args
getArgVars :: FunctionArguments SomeVarValue -> Maybe ArgumentKeyword -> [ (( VarName, [ Text ] ), SomeVarValue ) ]
getArgVars (FunctionArguments args) kw = do