Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code action: add additional constraint #989

Closed
ndmitchell opened this issue Jan 24, 2020 · 1 comment · Fixed by haskell/ghcide#653
Closed

Code action: add additional constraint #989

ndmitchell opened this issue Jan 24, 2020 · 1 comment · Fixed by haskell/ghcide#653

Comments

@ndmitchell
Copy link
Collaborator

I just got:

C:\Neil\model\Main.hs:20:19: error:
    • No instance for (Hashable a) arising from a use of ‘hash’
      Possible fix:
        add (Hashable a) to the context of
          the type signature for:
            apply :: forall a. Int -> RW a -> Map.Map a Int -> Map.Map a Int
    • In the expression:
        hash (name, [(v, mp Map.! v) | v <- Set.toAscList $ Set.union r w])
      In an equation for ‘input’:
          input
            = hash

That could probably have been a code action.

@pepeiborra
Copy link
Collaborator

+1

@pepeiborra pepeiborra transferred this issue from haskell/ghcide Jan 1, 2021
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 a pull request may close this issue.

2 participants