Skip to content
New issue

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

HSX - Wildcard pattern not implemented #1852

Open
CSchank opened this issue Oct 23, 2023 · 0 comments
Open

HSX - Wildcard pattern not implemented #1852

CSchank opened this issue Oct 23, 2023 · 0 comments

Comments

@CSchank
Copy link
Contributor

CSchank commented Oct 23, 2023

The following code fails to compile:

...
<tbody>{forEach snapshots (\(snapshot, _) -> renderSnapshotProject elmModuleId releases nRel snapshot)}</tbody>
...

with the following error:

error:
    • Exception when trying to run compile-time code:
        TH.WildPat not implemented
CallStack (from HasCallStack):
  error, called at ./IHP/HSX/HsExpToTH.hs:81:22 in ihp-hsx-1.1.0-DTVdyrktenA8joTUXR6OT7:IHP.HSX.HsExpToTH

Somewhat annoying workaround in this case is to use fst instead:

...
<tbody>{forEach snapshots (\snapshot -> renderSnapshotProject elmModuleId releases nRel (fst snapshot))}</tbody>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant