Dmitrii Kovanikov

Results 393 issues of Dmitrii Kovanikov

Something like this `length xs > 5` can be rewritten to handle infinite lists. This can be a separate inspection, or improved suggestion to the existing Infinite length inspection, if...

nice to have :nail_care:
analysis :alembic:
inspection

Suggest `0 < x && x < 10` instead of `x > 0 && x < 10`.

nice to have :nail_care:
inspection

Tools like `weeder` can tell about unused top-level functions. But Stan can tell about unreachable code blocks. Something like this: ```haskell if True then ... else ```

nice to have :nail_care:
inspection

It would be really nice if Stan can also include GHC warnings to its report. Having GHC proposals like [this one](https://github.com/ghc-proposals/ghc-proposals/pull/325) implemented will help a lot with implementing this feature.

enhancement
nice to have :nail_care:

Stan can output some false-positive results, when it sees the inspection, but it's not there: ```haskell foo = case xs of [] -> 0 _ -> head xs ``` We...

hardcore :rage4:
analysis :alembic:

Sometimes, when the code is polymorphic, it's very easy to use the wrong order of fields: ```haskell data User = User { userName :: !Text , userAge :: !Int }...

hardcore :rage4:
inspection

Having functions in `where` blocks without type signatures makes code harder to understand and can lead to subtle compilation errors without a clear understanding of how to fix them. Should...

question
inspection
opt-in

Users may want to introduce their own inspections (e.g. forbidding their partial functions). It would be nice to be able to support this API as well. My first thoughts (not...

question
nice to have :nail_care:
config :gear:

Often it's required to compare different parts of AST on equality to provide various inspections. For this, we need to provide new constructors for `PatternAst` and be able to compare...

hie
analysis :alembic:

Currently, operators which are defined inside typeclasses but missing fixity declaration, not reported. This can be fixed by matching operators as typeclass methods as well. The following AST pattern can...

analysis :alembic:
inspection