Skip to content

Simplify activeDiagnosticsInRange by returning [FileDiagnostic] instead of Maybe [FileDiagnostic] - #5041

Open
Aster89 wants to merge 1 commit into
haskell:masterfrom
Aster89:simplify
Open

Simplify activeDiagnosticsInRange by returning [FileDiagnostic] instead of Maybe [FileDiagnostic]#5041
Aster89 wants to merge 1 commit into
haskell:masterfrom
Aster89:simplify

Conversation

@Aster89

@Aster89 Aster89 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

The function activeDiagnosticsInRange returns MonadIO m => m (Maybe [FileDiagnostic]), but no callers appear to make any distinction between Just [] and Nothing, so we can probably just drop the Maybe layer alltogether? Tests will tell.

The function `activeDiagnosticsInRange` returns `MonadIO m => m (Maybe [FileDiagnostic])`,
but no callers appear to make any distinction between `Just []` and
`Nothing`, so we can probably just drop the `Maybe` layer alltogether?
Tests will tell.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant