From 8b7b36c7e17585e67b1c26a2b25d5b00763e048f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 2 Oct 2016 16:42:14 +0200 Subject: be exhaustive --- custom/notify-user.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'custom/notify-user.nix') diff --git a/custom/notify-user.nix b/custom/notify-user.nix index 16166f50..382580f3 100644 --- a/custom/notify-user.nix +++ b/custom/notify-user.nix @@ -29,9 +29,9 @@ stdenv.mkDerivation { setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr lines <- lines <$> getContents case lines of - [] -> exitWith ExitSuccess ((trim -> app):(trim -> summary):(trim . unlines -> contents)) -> do Notify.display_ $ Notify.appName app <> Notify.summary summary <> Notify.body contents + _ -> exitWith ExitFailure where trim = dropWhileEnd isSpace . dropWhile isSpace unQuote ('\''':xs) = init xs -- cgit v1.2.3