Skip to content

Error building bundled fltkhs in custom Setup.hs #164

@ch1bo

Description

@ch1bo

I have an issue with the custom Setup.hs when building:

Building bundled FLTK
Setup.hs:209:7-88: Non-exhaustive patterns in Flag prefixTemplate

Ran into this while building fltkhs using nix, but the essential problem is that the custom Setup.hs does depend on the fact that there a --libdir is passed to Cabal's configure. For example:

$ nix-shell -p ghc --run "runhaskell Setup.hs configure -fbundled"
Building bundled FLTK
Setup.hs:209:7-88: Non-exhaustive patterns in Flag prefixTemplate

while configuring like this works:

$ nix-shell -p ghc --run "runhaskell Setup.hs configure -fbundled --libdir /tmp/fltkhs/lib"
Building bundled FLTK
Archive:  fltk-master.zip
ee9ada967806dae72aa1b9ddad7b95b94f4dd2a3
   creating: fltk-master/
...

What's the rationale about a custom Setup.hs here?? AFAIK there are other packages which do have "in-tree" upstream c libraries which do use autoconf and a far simpler Setup.hs. One example would be integer-gmp in ghc itself.

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