walck / learn-physics

A library of functions for vector calculus, calculation of electric field, electric flux, magnetic field, and other quantities in mechanics and electromagnetic theory.
BSD 3-Clause "New" or "Revised" License
169 stars 14 forks source link

learn-physics-0.6.6 failed to build in stackage lts-22 #3

Open juhp opened 1 month ago

juhp commented 1 month ago

For Stackage LTS 22:

       /home/curators/work/unpack-dir/unpacked/learn-physics-0.6.6-76e78fa06be2a1843b54cfee925fc08e04d67114cba194581cdaac99025ea21d/
src/Physics/Learn/Visual/VisTools.hs:105:27: error: [GHC-83865]                                                                     
           • Couldn't match expected type: Vis.VisObject.Euler Double                                                               
                         with actual type: Euler Double                                                                             
             NB: ‘Vis.VisObject.Euler’                                                                                              
                   is defined in ‘Vis.VisObject’ in package ‘Vis-0.7.7.1’                                                           
                 ‘Euler’ is defined in ‘Types’ in package ‘SpatialMath-0.2.7.1’                                                     
           • In the first argument of ‘RotEulerRad’, namely                                                                         
               ‘(Euler 0 alpha 0)’                                                                                                  
             In the expression: RotEulerRad (Euler 0 alpha 0)                                                                       
             In an equation for ‘rotY’:                                                                                             
                 rotY alpha = RotEulerRad (Euler 0 alpha 0)                                                                         
           |                                                                                                                        
       105 | rotY alpha = RotEulerRad (Euler 0 alpha 0)                                                                             
           |                           ^^^^^^^^^^^^^^^                                                                              

       /home/curators/work/unpack-dir/unpacked/learn-physics-0.6.6-76e78fa06be2a1843b54cfee925fc08e04d67114cba194581cdaac99025ea21d/
src/Physics/Learn/Visual/VisTools.hs:110:27: error: [GHC-83865]                                                                     
           • Couldn't match expected type: Vis.VisObject.Euler Double                                                               
                         with actual type: Euler Double                                                                             
             NB: ‘Vis.VisObject.Euler’                                                                                              
                   is defined in ‘Vis.VisObject’ in package ‘Vis-0.7.7.1’                                                           
                 ‘Euler’ is defined in ‘Types’ in package ‘SpatialMath-0.2.7.1’                                                     
           • In the first argument of ‘RotEulerRad’, namely                                                                                        ‘(Euler alpha 0 0)’                                                                                                  
             In the expression: RotEulerRad (Euler alpha 0 0)                                                                       
             In an equation for ‘rotZ’:                                                                                             
                 rotZ alpha = RotEulerRad (Euler alpha 0 0)                                                                         
           |                                                                                                                        
       110 | rotZ alpha = RotEulerRad (Euler alpha 0 0)                                                                             
           |                           ^^^^^^^^^^^^^^^
juhp commented 1 month ago

Not quite sure what changed though since it did build earlier... before lts-22.22

juhp commented 1 month ago

LPFP fails similarly