Compare commits

..

1 Commits

Author SHA1 Message Date
mtgmonkey
732a4efd33 fix pair compiler warnings 2025-12-03 20:16:51 +01:00

View File

@@ -176,8 +176,6 @@ type CheckResult = Either CheckFailure CheckSuccess
type CheckSuccess = (Program, [Warn]) type CheckSuccess = (Program, [Warn])
type CheckFailure = (Error, [Warn]) type CheckFailure = (Error, [Warn])
type LineNumber = Int
data Error data Error
= ErrUnimplementedCheckProgram = ErrUnimplementedCheckProgram
| ErrVariableDeclaredMultipleTimes Variables | ErrVariableDeclaredMultipleTimes Variables
@@ -268,6 +266,6 @@ counts' (x:xs) cts =
[(a, ct + 1) | (a, ct) <- cts [(a, ct + 1) | (a, ct) <- cts
, a == x , a == x
] ++ ] ++
[t | t@(a, ct) <- cts [t | t@(a, _) <- cts
, a /= x , a /= x
] ]