HSX - Wildcard pattern not implemented
CSchank opened this issue · comments
Christopher William Schankula commented
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>
...