diff --git a/solutions/src/2024/06.hs b/solutions/src/2024/06.hs index 6315cd7..5958b20 100644 --- a/solutions/src/2024/06.hs +++ b/solutions/src/2024/06.hs @@ -63,7 +63,7 @@ walk grid d p = -- | Predicate for paths that loop instead of running off the edge of the map. -- -isLoop :: Ord a => [a] -> Bool +isLoop :: Eq a => [a] -> Bool isLoop a = go a a where go (x:xs) (_:y:ys) = x == y || go xs ys