diagrams / diagrams-lib

Diagrams standard library
https://diagrams.github.io/
Other
135 stars 63 forks source link

Not compatable with optparse-applicative-0.16.* #352

Closed recursion-ninja closed 3 years ago

recursion-ninja commented 3 years ago

diagrams-lib does not build with the new version optparse-applicative-0.16.*.

src/Diagrams/Backend/CmdLine.hs:223:23: error:
    • Couldn't match expected type ‘ParseError’
                  with actual type ‘Maybe String -> ParseError’
    • Probable cause: ‘ShowHelpText’ is applied to too few arguments
      In the first argument of ‘abortOption’, namely ‘ShowHelpText’
      In the expression: abortOption ShowHelpText
      In the expression:
        abortOption ShowHelpText
          $ mconcat [long "help", short '?', help "Show this help text"]
    |
223 | helper' = abortOption ShowHelpText $ mconcat
    |                       ^^^^^^^^^^^^
cabal: Failed to build diagrams-lib-1.4.3