From: Neil Smith Date: Mon, 2 Dec 2024 10:11:34 +0000 (+0000) Subject: Formatting typo fix X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=b1a432c15876fde1f9921c2726cf047c6c030493;p=advent-of-code-24.git Formatting typo fix --- 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)