Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
5564 commits behind the upstream repository.
  • Richard Eisenberg's avatar
    9366e019
    Fix Trac #8485. · 9366e019
    Richard Eisenberg authored
    The problem was that the renamer treated role annotations by looking
    up the annotated type in the module being compiled. If this check
    succeeded, it was assumed that the annotated type was being compiled
    at the same time. But this assumption is false! In GHCi (and Template
    Haskell), sometimes compilation within one module can be staged. So,
    now there is a more intricate check for orphan role annotations. This
    also has the benefit of producing better error messages.
    9366e019
    History
    Fix Trac #8485.
    Richard Eisenberg authored
    The problem was that the renamer treated role annotations by looking
    up the annotated type in the module being compiled. If this check
    succeeded, it was assumed that the annotated type was being compiled
    at the same time. But this assumption is false! In GHCi (and Template
    Haskell), sometimes compilation within one module can be staged. So,
    now there is a more intricate check for orphan role annotations. This
    also has the benefit of producing better error messages.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.