Skip to content

package..ghcOptions should be sent to the haddock command #2129

Open
@pranaysashank

Description

@pranaysashank

Describe the bug

package..ghcOptions are not sent to haddock

Steps To Reproduce

  1. Add -XDuplicateRecordFields to a package that requires it in ghcOptions
  2. Build the haddock derivation (via nix-shell), haddock build fails because it doesn't have the DuplicateRecordFields extension enabled.

Expected behavior

ghcOptions gets passed to haddock via --optghc

Additional context

I faced this issue when upgrading to 9.8.1, a few packages that were building fine before now require DuplicateRecordFields behaviour with a warning that the behaviour will be deprecated in the future. As a temporary fix, I passed the ghcOptions in the module settings for the package (amazonka). This builds fine, but haddock building fails. I set doHaddock = false for the package as part of the temporary fix

  • Build system (eg. x86_64-linux or aarch64-darwin): x86)64-linux
  • GHC version: 9.8.1
  • Haskell.nix version (or commit) used: 1536b63

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpreservedKeep stale bot away

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions