Skip to content

aarch32: Orphan instance #525

@langston-barrett

Description

@langston-barrett

We should either disable this warning with a note on why we think this orphan is acceptable, or we should move it to the module that defines RegContext.

src/Data/Macaw/AArch32/Symbolic/Regs.hs:81:1: warning: [GHC-90177] [-Worphans]
    Orphan family instance:
      type instance MS.ArchRegContext SA.AArch32 = RegContext
                      -- Defined at src/Data/Macaw/AArch32/Symbolic/Regs.hs:81:15
    Suggested fix:
      Move the instance declaration to the module of the type family or of the type, or
      wrap the type with a newtype and declare the instance on the new type.
   |
81 | type instance MS.ArchRegContext SA.AArch32 = RegContext
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

See:

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch:aarch32AArch32 (32 bit ARM) issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions