Skip to content

Problems to add cabal-helper-1.1.0.0 to stack and cabal build plans for windows #116

@jneira

Description

@jneira
  • I am trying to add cabal-helper-1.1.0.0 to hie and hls (haskell-language-server)
  • The package is compatible with a wide range of Cabal versions in linux but it requires Cabal >= 3.0.1 for windows to exclude versions without the stripExeExtension bug
  • There is a problem with haddock-api: for versions < 2.23 it was fixing at once the upper bounds of base and Cabal, so you only can allow Cabal versions using allow-newer in stack.yaml and cabal.project
  • This change is only needed for windows so it is unfortunate to have to add the dangerous allow-newer (you know for stack is equal to --skip-solver-forall-packages) for being able to update one package for one os
  • It will be needed for ghc-8.4 and ghc-8.6
  • Options:
    • Dont update cabal-helper for those ghc versions 😞
    • Use allow-newer for those ghc versions:
      • it will need dedicated cabal.project and stack.yaml files per ghc and windows version (up to 8 files in hie) i we want isolate allow-newer 😞
    • Backport the fix to Cabal-2.4.0.0 and 2.4.1.0 (maybe Cabal-2.2 for ghc-8.4.4?) , use those Cabal patched version and remove the lower bound for c-h in windows. This seems to be the right one but 😨
    • Remove the lower bound for windows and let the bug free 😥
      • Here is my question: how affected that bug to cabal-helper usage, there are some issues here or in any downstream packages?

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