From b1a432c15876fde1f9921c2726cf047c6c030493 Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Mon, 2 Dec 2024 10:11:34 +0000 Subject: [PATCH] Formatting typo fix --- advent02/Main.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/advent02/Main.hs b/advent02/Main.hs index a0f4534..6f3af87 100644 --- a/advent02/Main.hs +++ b/advent02/Main.hs @@ -21,9 +21,9 @@ isSafe xs = allSameSign diffs && bigEnough diffs && smallEnough diffs where diffs = zipWith (-) xs (tail xs) allSameSign xs - | all (>0) xs = True - | all (<0) xs = True - | otherwise = False + | all (>0) xs = True + | all (<0) xs = True + | otherwise = False bigEnough = all ((>= 1) . abs) smallEnough = all ((<= 3) . abs) -- 2.34.1