shayne-fletcher / ghc-lib-parser-ex

GHC API parse tree utilities
Other
10 stars 4 forks source link

Build errors in v8.8.5.2 #27

Closed jinwoo closed 4 years ago

jinwoo commented 4 years ago

I'm seeing build errors when building ghc-lib-parser-ex 8.8.5.2 against ghc-lib-parser 8.8.2.20200205.

ghc_lib_parser_ex/v8_8_5_2/src/Language/Haskell/GhclibParserEx/DynFlags.hs:31:50: error:
    • No instance for (Bounded Extension)                         
        arising from a use of ‘minBound’                                                                                                     
      There are instances for similar types:                                                                                                 
        instance [safe] Bounded                                                                                                              
                          ghc-lib-parser-8.8.2.20200205:GHC.LanguageExtensions.Type.Extension                                                
          -- Defined in ‘ghc-lib-parser-8.8.2.20200205:GHC.LanguageExtensions.Type’                                                          
    • In the expression: minBound                                                                                                            
      In the expression: [minBound .. maxBound]                                                                                              
      In a stmt of a list comprehension: x <- [minBound .. maxBound]                                                                         
   |                                                                                                                                         
31 |   where exts = Map.fromList [(show x, x) | x <- [minBound .. maxBound]]                                                                 
   |                                                  ^^^^^^^^                                                                               

ghc_lib_parser_ex/v8_8_5_2/src/Language/Haskell/GhclibParserEx/DynFlags.hs:142:41: error:
    • Couldn't match type ‘Extension’                                                                                                        
                     with ‘ghc-lib-parser-8.8.2.20200205:GHC.LanguageExtensions.Type.Extension’          
      NB: ‘ghc-lib-parser-8.8.2.20200205:GHC.LanguageExtensions.Type.Extension’                        
            is defined in ‘GHC.LanguageExtensions.Type’                                                                                                                                                                                                                                   
                in package ‘ghc-lib-parser-8.8.2.20200205’                                                                                   
          ‘Extension’                                                                                                                        
            is defined in ‘GHC.LanguageExtensions.Type’                                                                                      
                in package ‘ghc-boot-th-8.6.4’                                                                                               
      Expected type: [ghc-lib-parser-8.8.2.20200205:GHC.LanguageExtensions.Type.Extension]                                                                                                                                                                                                
        Actual type: [Extension]                        
    • In the third argument of ‘foldl'’, namely ‘enable’              
      In the expression: foldl' xopt_set flags enable                                                                                                                                                                                                                                     
      In an equation for ‘flags'’: flags' = foldl' xopt_set flags enable                                                                     
    |                                                                                                                                                                                                                                                                                     
142 |     let flags' =  foldl' xopt_set flags enable                                                                                         
    |                                         ^^^^^^                                                                                         

ghc_lib_parser_ex/v8_8_5_2/src/Language/Haskell/GhclibParserEx/DynFlags.hs:143:44: error:                                
    • Couldn't match type ‘Extension’                                                                                                                                                                                                                                                     
                     with ‘ghc-lib-parser-8.8.2.20200205:GHC.LanguageExtensions.Type.Extension’                                              
      NB: ‘ghc-lib-parser-8.8.2.20200205:GHC.LanguageExtensions.Type.Extension’
            is defined in ‘GHC.LanguageExtensions.Type’                                                                                      
                in package ‘ghc-lib-parser-8.8.2.20200205’                                                                                   
          ‘Extension’                                                                                                                        
            is defined in ‘GHC.LanguageExtensions.Type’                                                                                      
                in package ‘ghc-boot-th-8.6.4’                                                                                               
      Expected type: [ghc-lib-parser-8.8.2.20200205:GHC.LanguageExtensions.Type.Extension]                                                   
        Actual type: [Extension]                                                                                                             
    • In the third argument of ‘foldl'’, namely ‘disable’                                                                                    
      In the expression: foldl' xopt_unset flags' disable                                                                                    
      In an equation for ‘flags''’:                                                                                                          
          flags'' = foldl' xopt_unset flags' disable                                                                                         
    |                                                                                                                                        
143 |     let flags'' = foldl' xopt_unset flags' disable                                                                                     
    |                                            ^^^^^^^                                                                                     
jinwoo commented 4 years ago

Forgot to mention that I'm building with GHC 8.6.4.

jinwoo commented 4 years ago

Sorry this seems to be a problem in our own build environment. Closing.