From 17a2b0f8b4367d7c057e6f85584271f3ad7ed2f5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 13 Feb 2018 14:13:55 -0800 Subject: [PATCH] Update Eval.hs --- Nix/Eval.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Nix/Eval.hs b/Nix/Eval.hs index 160bfc8..581850e 100644 --- a/Nix/Eval.hs +++ b/Nix/Eval.hs @@ -133,7 +133,8 @@ evalExpr = cata phi Just v -> pure v Nothing -> case alternative of Just v -> v env - Nothing -> error $ "could not look up attribute '" ++ (intercalate "." $ map show ks) ++ "' in value " ++ (show aset') + Nothing -> error $ "could not look up attribute '" + ++ intercalate "." (map show ks) ++ "' in value " ++ show aset' extract (Fix (NVSet s)) (k:ks) = case Map.lookup k s of Just v -> extract v ks Nothing -> Nothing