-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#24] Handles pattern match failues from
fromExtension
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.
- Loading branch information
1 parent
c6e9894
commit 7a574c8
Showing
4 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters