You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: it turned out that the code for GHC extensions conversion that
we use from `haskell-src-meta` now does not handle the recently added
extensions, and on attempt to use the new LTS our interpolator fails
with pattern match error.
See #24 for
details.
Solution: use `spoon` to catch the pattern match failure.
Motivation: since the issued `haskell-src-meta` package version is
already on Hackage, there is not much we can do right now. Moreover,
some people wait for nyan-interpolation to work with the recent LTS.
So let's make it work at least somehow. I don't want to copy-paste the
canvas of code that `fromExtension` is, so I just use `teaspoon` to
catch the cases of extensions unhandled by `fromExtension` and ignore
them. As result, the most recent exceptions remain unsupported for now.
Separately I will try to fix `haskell-src-meta` and to make all the
extensions work the user will just need to bump their `haskell-src-meta`
dependency.
Clarification and motivation
Looks like recent releases of
haskell-src-meta
do not support the recent versions oftemplate-haskell
properly. See haskell-party/haskell-src-meta#40.We have to exclude the non-working versions properly, as in LTS-20.1 currently, interpolator does not work.
Acceptance criteria
haskell-src-meta
versions after the one last checked (which is0.8.9
) tests pass or we forbid building with such a version.The text was updated successfully, but these errors were encountered: