We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When interpolating an expression that uses TypeApplications, TH fails with a "Non-exhaustive patterns" error.
Steps to reproduce the behavior:
$ import Text.Interpolation.Nyan $ varMonomorphic = 0 :: Int $ varPolymorphic = 0 :: Num a => a $ [int||Testing #{varMonomorphic}|] Testing 0 $ [int||Testing #{varPolymorphic :: Int}|] Testing 0 $[int||Testing #{varPolymorphic @Int}|] <interactive>:13:1: error: • Exception when trying to run compile-time code: src/Language/Haskell/Meta/Extensions.hs:(179,19)-(348,49): Non-exhaustive patterns in case Code: template-haskell-2.18.0.0:Language.Haskell.TH.Quote.quoteExp int "|Testing #{varPolymorphic @Int}" • In the quasi-quotation: [int||Testing #{varPolymorphic @Int}|]
Expected the interpolation of varPolymorphic @Int to work.
varPolymorphic @Int
The text was updated successfully, but these errors were encountered:
cc @Martoon-00
Sorry, something went wrong.
Yeah, unfortunatelly it does not work with the recent LTS, #24 is related.
I'll try handle this once having time. Thanks for posting this issue.
The 0.9.1 versions on hackage should contain the fix, please check!
Yup, seems to be fixed now, thanks! 😄
λ> let varPolymorphic :: Num a => a; varPolymorphic = 0 λ> [int||Testing #{varPolymorphic @Int}|] Testing 0
Successfully merging a pull request may close this issue.
Description
When interpolating an expression that uses TypeApplications, TH fails with a "Non-exhaustive patterns" error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected the interpolation of
varPolymorphic @Int
to work.Environment
The text was updated successfully, but these errors were encountered: