Correct error message

This commit is contained in:
George Thomas 2025-12-09 13:34:48 +00:00
parent 3744f41b5f
commit 0e2a3c81ac

View File

@ -13,7 +13,7 @@ puzzle =
[ TL.show
. maximum
. fmap ((\(V2 x y) -> x * y) . (+ 1) . fmap abs . uncurry (-))
. fromMaybe (error "empty input")
. fromMaybe (error "input too small")
. nonEmpty
. allUnorderedPairs False
]