Skip to content

Compiling using Nix on ghc 9.2.4 produced -Wunused-top-binds error #7

@danwdart

Description

@danwdart

I'm not sure if there's something about -Werror here but I get the following trying to build:

error: builder for '/nix/store/fdd1rsmjp85hp910i1cc38m9wnkwh03r-graphite-0.10.0.1.drv' failed with exit code 1;
       last 10 log lines:
       >     Defined but not used: ‘isDirectedGraphic’
       >    |
       > 60 | isDirectedGraphic = undefined
       >    | ^^^^^^^^^^^^^^^^^
       >
       > src/Data/Graph/UGraph/DegreeSequence.hs:71:1: warning: [-Wunused-top-binds]
       >     Defined but not used: ‘fromGraphicalSequence’
       >    |
       > 71 | fromGraphicalSequence = undefined
       >    | ^^^^^^^^^^^^^^^^^^^^^
       For full logs, run 'nix log /nix/store/fdd1rsmjp85hp910i1cc38m9wnkwh03r-graphite-0.10.0.1.drv'.
error: 1 dependencies of derivation '/nix/store/mv9i7km3zsf0j1npgavgjqnx9y93kslv-ghc-9.2.4-with-packages.drv' failed to build

Not sure here, could just patch to use -Wno-unused-top-binds in the file until that's finished?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions