From eb8c2252cbc42646e0152e8e57adfd51a0f31ffd Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Fri, 18 Sep 2020 17:24:29 +0300 Subject: [PATCH] clean-up: Nix.hs: evaluateExpression: use Kleisli composition --- src/Nix.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nix.hs b/src/Nix.hs index 5bbd7fd..03c52d8 100644 --- a/src/Nix.hs +++ b/src/Nix.hs @@ -119,7 +119,7 @@ evaluateExpression mpath evaluator handler expr = do Success x -> x Failure err -> errorWithoutStackTrace (show err) - eval' = (normalForm =<<) . nixEvalExpr mpath + eval' = normalForm <=< nixEvalExpr mpath argmap args = nvSet (M.fromList args) mempty