haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.62k stars 691 forks source link

HaskellForMaths does not build with 0229-whitespace-bang-patterns implemented #10443

Closed dimpase closed 1 hour ago

dimpase commented 3 hours ago

Describe the bug HaskellForMaths does not build with current ghc

To Reproduce

$ cabal install HaskellForMaths 

Expected behavior Should build successfully.

System information

Additional context

[10 of 58] Compiling Math.Algebra.LinearAlgebra ( Math/Algebra/LinearAlgebra.hs, dist/build/Math/Algebra/LinearAlgebra.o, dist/build/Math/Algebra/LinearAlgebra.dyn_o )

Math/Algebra/LinearAlgebra.hs:222:60: error:
    Bang pattern in expression context: !j
    Did you mean to add a space after the '!'?
    |
222 |                    in zip is $ L.transpose [map (negate . (!j)) m' | j <- js]
    |                                                            ^^
cabal: Failed to build HaskellForMaths-0.4.9. See the build log above for
details.

everything points at ghc proposal 0229 as the reason.

ffaf1 commented 2 hours ago

@dimpase this should be opened in the HaskellForMaths repository, am I wrong?

Cabal does not compile .hs files by itself.

dimpase commented 2 hours ago

is there a repo? I can't find it.

ffaf1 commented 1 hour ago

There is no repository but on Hackage a maintainer email is present: haskellformaths-at-googlemail-dot-com.

ffaf1 commented 1 hour ago

Since this is not cabal related I will close it, please reopen if you need anythin else.

dimpase commented 1 hour ago

I've sent an email listed on hackage for HaskellForMaths as the way to contact the maintainer

ffaf1 commented 1 hour ago

Very good. As last resort, you could consider taking over a package.