summaryrefslogtreecommitdiff
path: root/src/Test.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-02-13 21:03:00 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-02-13 21:03:00 +0100
commit14efffc66cb60465c18c984311bde5a5502803db (patch)
tree72ce535da6c6f7c7851b49547030bc15de6620c6 /src/Test.hs
parentd67825ea3f441523e2814b831d397d95c0dc46a4 (diff)
Evaluate functions in parameters via unifyExpr
Diffstat (limited to 'src/Test.hs')
-rw-r--r--src/Test.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Test.hs b/src/Test.hs
index 0f65b3c..82303f8 100644
--- a/src/Test.hs
+++ b/src/Test.hs
@@ -529,7 +529,6 @@ exprArgs = \case
funFromSomeVarValue :: forall a m. (ExprType a, MonadFail m) => SourceLine -> FqVarName -> SomeVarValue -> m (FunctionType a)
funFromSomeVarValue sline name (SomeVarValue (VarValue _ args value :: VarValue b)) = do
maybe (fail err) return $ do
- guard $ not $ anull args
FunctionType <$> cast (value sline)
where
err = T.unpack $ T.concat [ T.pack "expected function returning ", textExprType @a Proxy, T.pack ", but variable '", textFqVarName name, T.pack "' has ",