Skip to content

Build failure due to Cabal library changes #51

Description

@adamgundry

Hi @yav, thanks for your work on graphmod! Alas, building graphmod-1.4.5.1 with Cabal-3.16.0.0 fails with the error below. Would it be possible to add upper bounds to avoid the broken build plan?

Building library for graphmod-1.4.5.1...
[1 of 5] Compiling Graphmod.Trie    ( src/Graphmod/Trie.hs, dist/build/Graphmod/Trie.o, dist/build/Graphmod/Trie.dyn_o )
[2 of 5] Compiling Graphmod.Utils   ( src/Graphmod/Utils.hs, dist/build/Graphmod/Utils.o, dist/build/Graphmod/Utils.dyn_o )
src/Graphmod/Utils.hs:149:43: warning: [GHC-62161] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding:
        Patterns of type ‘Qualifier’ not matched: FromFile _
    |
149 |                         (xs,_:ys)  -> let Hierarchy qs = splitQualifier ys
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Graphmod/Utils.hs:167:43: warning: [GHC-62161] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding:
        Patterns of type ‘(Qualifier, String)’ not matched:
            ((FromFile _), _)
    |
167 |                         (xs,_:ys)  -> let (Hierarchy as,bs) = splitModName ys
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[3 of 5] Compiling Graphmod.CabalSupport ( src/Graphmod/CabalSupport.hs, dist/build/Graphmod/CabalSupport.o, dist/build/Graphmod/CabalSupport.dyn_o )
src/Graphmod/CabalSupport.hs:19:47: error: [GHC-61689]
    Module ‘Distribution.Utils.Path’ does not export ‘PackageDir’.
   |
19 | import Distribution.Utils.Path (SymbolicPath, PackageDir, SourceDir, getSymbolicPath)
   |                                               ^^^^^^^^^^

src/Graphmod/CabalSupport.hs:19:59: error: [GHC-61689]
    Module ‘Distribution.Utils.Path’ does not export ‘SourceDir’.
   |
19 | import Distribution.Utils.Path (SymbolicPath, PackageDir, SourceDir, getSymbolicPath)
   |                                                           ^^^^^^^^^

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