digitallyinduced / ihp

🔥 The fastest way to build type safe web apps. IHP is a new batteries-included web framework optimized for longterm productivity and programmer happiness

Home Page:https://ihp.digitallyinduced.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HSX - Wildcard pattern not implemented

CSchank opened this issue · comments

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>
...