guibou / PyF

Haskell QuasiQuoter for String Formatting
BSD 3-Clause "New" or "Revised" License
66 stars 13 forks source link

Compilation failure with GHC 9.10.1-alpha3: ‘HsAppType’ should have 3 arguments, but has been given 4 #137

Closed tchoutri closed 6 months ago

tchoutri commented 6 months ago

Here is the result of compiling PyF with GHC 9.10.1-alpha3

src/PyF/Internal/Meta.hs:165:10: error: [GHC-27346]
    • The data constructor ‘HsAppType’ should have 3 arguments, but has been given 4
    • In the pattern: HsAppType _ e _ HsWC {hswc_body}
      In an equation for ‘toExp’:
          toExp d (HsAppType _ e _ HsWC {hswc_body})
            = TH.AppTypeE (toExp d . unLoc $ e) (toType . unLoc $ hswc_body)
    |
165 | toExp d (Expr.HsAppType _ e _ HsWC{hswc_body}) = TH.AppTypeE (toExp d . unLoc $ e) (toType . unLoc $ hswc_body)
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
guibou commented 6 months ago

Hey, thank you for the report.

I indeed had not started to have a look at GHC 9.10 alpha. Let me do that ASAP.

guibou commented 6 months ago

If you don't mind, I'll wait for GHC 9.10 rc to be released, should happen really soon.

guibou commented 6 months ago

Well, maybe ready sooner than expected.

@tchoutri if you want, could you try #138?

Thank you.

guibou commented 6 months ago

Support for GHC 9.10 (alpha3) has been merged.

I'll do a PyF release when the official 9.10 will be released.