amcphail / hmatrix-gsl-stats

GSL Statistics functions for Haskell hmatrix
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

cannot compile with ghc-8 #12

Closed jwaldmann closed 7 years ago

jwaldmann commented 8 years ago

with ghc-8.0.1, I am seeing a lot of errors like this one:

Preprocessing library hmatrix-gsl-stats-0.4.1.3...
[ 1 of 10] Compiling Numeric.GSL.Fitting.Linear ( lib/Numeric/GSL/Fitting/Linear.hs, dist/build/Numeric/GSL/Fitting/Linear.o )

lib/Numeric/GSL/Fitting/Linear.hs:65:51: error:
    • Couldn't match expected type ‘IO CInt’
                  with actual type ‘TransRaw
                                      (TransRaw
                                         (CInt -> Ptr Double -> CInt -> Ptr Double -> IO CInt) b1
                                       -> IO r1)
                                      b0
                                    -> IO r0’
    • Probable cause: ‘(#)’ is applied to too few arguments
      In the first argument of ‘(#|)’, namely
        ‘(fitting_linear c0 c1 chi_sq cov00 cov01 cov11) # x # y’

this is with hmatrix-0.18.0.0. It works with hmatrix-0.17.0.2, so I suggest to put this exact version bound in the cabal file, as a temporary fix.

amcphail commented 8 years ago

Hi,

Thanks for the email. It looks like there's an operator from hmatrix that has changed definitions.

I'm in the middle of exams. I'll have a look in a week or so.

Vivian

On 6/11/2016 01:24, "jwaldmann" notifications@github.com wrote:

with ghc-8.0.1, I am seeing a lot of errors like this one:

Preprocessing library hmatrix-gsl-stats-0.4.1.3... [ 1 of 10] Compiling Numeric.GSL.Fitting.Linear ( lib/Numeric/GSL/Fitting/Linear.hs, dist/build/Numeric/GSL/Fitting/Linear.o )

lib/Numeric/GSL/Fitting/Linear.hs:65:51: error: • Couldn't match expected type ‘IO CInt’ with actual type ‘TransRaw (TransRaw (CInt -> Ptr Double -> CInt -> Ptr Double -> IO CInt) b1 -> IO r1) b0 -> IO r0’ • Probable cause: ‘(#)’ is applied to too few arguments In the first argument of ‘(#|)’, namely ‘(fitting_linear c0 c1 chi_sq cov00 cov01 cov11) # x # y’

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/amcphail/hmatrix-gsl-stats/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQMp8D-OQmDqFTRJwMXQBUFIXdoIlHZks5q7HWZgaJpZM4KqP25 .

amcphail commented 8 years ago

I've added an upper bound as suggested temporarily.

amcphail commented 7 years ago

Update for new definition of apply and applyRaw from hmatrix 0.18