Thanks a lot for your advice, it helped. I tried running `cabal install diagrams --allow-newer`, and it made a lot of progress in the installation. However, when it tried to compile everything, I ran into an error on the 71st item:
[71 of 73] Compiling Diagrams.Backend.CmdLine ( src/Diagrams/Backend/CmdLine.hs, dist/dist-sandbox-49207e1b/build/Diagrams/Backend/CmdLine.o, dist/dist-sandbox-49207e1b/build/Diagrams/Backend/CmdLine.dyn_o )
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: Leaving directory '/var/folders/65/b3kdpf016518_w4nwh9hxvz40000gp/T/cabal-tmp-43858/diagrams-lib-1.4.3'
cabal: Error: some packages failed to install:
diagrams-1.4-9bqvWxaY20Y30AEfwC7ius depends on diagrams-1.4 which failed to
install.
diagrams-contrib-1.4.4-7OhCX32H3SsD0Mmslpo4Ad depends on
diagrams-contrib-1.4.4 which failed to install.
diagrams-lib-1.4.3-1fR1LFhe6YD45cwFeos83f failed during the building phase.
The exception was:
ExitFailure 1
diagrams-svg-1.4.3-CA35y7ooae56EdHY5mOzox depends on diagrams-svg-1.4.3 which
failed to install.
Some searching indicates that this isn't Diagrams-specific, for example this
stack Github issue. So at this point I might be beyond the scope of this group, but still wondering if you have seen this error or know how I might get around it? Maybe there is a way in cabal to specify that it should only depend on an older version of optparse-applicative?
Thanks for your help,
Arun