Skip to content

Typeclass information missing when using :GhcModType and :GhcModTypeInsert #89

@SageEx

Description

@SageEx

Is there an option to see the class constraints in the function definition ?
Like:

compress [] = []
compress [a] = [a]
compress (a:b:xs)
    | a==b = compress (a:xs)
    | otherwise = a: compress (b:xs)

On :GhcModTypeInsert it shows compress :: [a] -> [a] however, it should be compress :: Eq a => [a] -> [a].
This lack of typeclass information is wrong - ghci refuses to accept the file (as it should).
So, is there an configuration option that I overlooked ?
If not, shouldn't this be the default behaviour ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions