Skip to content

Inferred type of print using function is surprising #806

Open
@ocharles

Description

@ocharles

I wanted to play around with the new functionality to insert type signatures. The following:

hello = print

surprises me, as when I add a type signature with a code action, I get:

hello :: GHC.Types.Any -> IO ()
hello = print

which is mostly certainly not what I'd expect!

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