Skip to content

Unboxed tuple error when importing a module with no-specialise #771

Closed
@michaelpj

Description

@michaelpj

I have modules A and B. A imports B, and B has OPTIONS_GHC -fno-specialise. ghcide gives me the following error on A (but not B). The error goes away if I remove the no-specialise on B.

  Program error: Error: bytecode compiler can't handle unboxed tuples and sums.
  Possibly due to foreign import/export decls in source.
  Workaround: use -fobject-code, or compile this module to .o separately.

I remembered this because I saw Ben Gamari report something similar on IRC, not sure if it's the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: ghcidestatus: needs infoNot actionable, because there's missing informationtype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions