Compare commits
1 Commits
038946ca49
...
732a4efd33
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
732a4efd33 |
@@ -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
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user