Skip to content

Support Cabal 3.12 #20

Closed
Closed

Description

@sternenseemann

It seems like uuagc needs to be adjusted for Cabal >= 3.12 due to the introduction of the Suffix newtype: haskell/cabal@65905b9

Currently compilation fails with

[4 of 5] Compiling Distribution.Simple.UUAGC.UUAGC ( src/Distribution/Simple/UUAGC/UUAGC.hs, dist/build/Distribution/Simple/UUAGC/UUAGC.o, dist/build/Distribution/Simple/UUAGC/UUAGC.dyn_o )
src/Distribution/Simple/UUAGC/UUAGC.hs:109:52: error: [8;;https://errors.haskell.org/messages/GHC-83865GHC-838658;;]
    • Couldn't match type ‘[Char]’ with ‘Suffix’
      Expected: Suffix
        Actual: String
    • In the expression: "ag"
      In the first argument of ‘(:)’, namely ‘("ag", ag)’
      In the expression: ("ag", ag) : ("lag", ag) : knownSuffixHandlers
    |
109 |   hooks = simpleUserHooks { hookedPreProcessors = ("ag", ag):("lag",ag):knownSuffixHandlers
    |                                                    ^^^^

src/Distribution/Simple/UUAGC/UUAGC.hs:109:63: error: [8;;https://errors.haskell.org/messages/GHC-83865GHC-838658;;]
    • Couldn't match type ‘[Char]’ with ‘Suffix’
      Expected: Suffix
        Actual: String
    • In the expression: "lag"
      In the first argument of ‘(:)’, namely ‘("lag", ag)’
      In the second argument of ‘(:)’, namely
        ‘("lag", ag) : knownSuffixHandlers’
    |
109 |   hooks = simpleUserHooks { hookedPreProcessors = ("ag", ag):("lag",ag):knownSuffixHandlers
    |                                                               ^^^^^

Activity

  1. jbransen commented on Sep 27, 2025

    @jbransen
    Member

    Thanks to @noughtmare this has now been fixed, I've uploaded a new version to Hackage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions