Skip to content

Inline function at specific use site #1758

Open
@Anrock

Description

@Anrock

I've noticed that quite often when refactoring code it ends up with some function being used only in one place or body of a function being simplified so it no longer makes sense to have it separate. For both cases I usually inline a function which is completely mechanical process, thanks to referential transparency in Haskell.

Could we have a "inline function" code action which will basically just replaces function application with function's body?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions