aligusnet / mltool

Machine Learning Toolbox
BSD 3-Clause "New" or "Revised" License
35 stars 4 forks source link

src/MachineLearning/Regression.hs: Ambiguous occurrence ‘<>’ #2

Closed juhp closed 6 years ago

juhp commented 6 years ago

From the Stackage Nightly build:

src/MachineLearning/Regression.hs:38:19: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘Prelude.<>’,
                             imported from ‘Prelude’ at src/MachineLearning/Regression.hs:10:8-33
                             (and originally defined in ‘GHC.Base’)
                          or ‘Numeric.LinearAlgebra.<>’,
                             imported from ‘Numeric.LinearAlgebra’ at src/MachineLearning/Regression.hs:30:31-34
   |
38 |   in (LA.inv (trX <> x) <> trX) #> y
   |                   ^^

src/MachineLearning/Regression.hs:38:25: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘Prelude.<>’,
                             imported from ‘Prelude’ at src/MachineLearning/Regression.hs:10:8-33
                             (and originally defined in ‘GHC.Base’)
                          or ‘Numeric.LinearAlgebra.<>’,
                             imported from ‘Numeric.LinearAlgebra’ at src/MachineLearning/Regression.hs:30:31-34
   |
38 |   in (LA.inv (trX <> x) <> trX) #> y
   |                         ^^

src/MachineLearning/Regression.hs:46:20: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘Prelude.<>’,
                             imported from ‘Prelude’ at src/MachineLearning/Regression.hs:10:8-33
                             (and originally defined in ‘GHC.Base’)
                          or ‘Numeric.LinearAlgebra.<>’,
                             imported from ‘Numeric.LinearAlgebra’ at src/MachineLearning/Regression.hs:30:31-34
   |
46 |   in (LA.pinv (trX <> x) <> trX) #> y
   |                    ^^

src/MachineLearning/Regression.hs:46:26: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘Prelude.<>’,
                             imported from ‘Prelude’ at src/MachineLearning/Regression.hs:10:8-33
                             (and originally defined in ‘GHC.Base’)
                          or ‘Numeric.LinearAlgebra.<>’,
                             imported from ‘Numeric.LinearAlgebra’ at src/MachineLearning/Regression.hs:30:31-34
   |
46 |   in (LA.pinv (trX <> x) <> trX) #> y
   |                          ^^
juhp commented 6 years ago

Okay I see you already got it re-enabled (fpco/stackage#3492)