You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The steps I took, as an IHP beginner, just working with the web console:
Created a table named users, using CodeGen
Clicked CodeGen in the console, then Controller
Entered users in the Controller name text box (notice the console corrects users → Users so it's capitalised)
This all seemed to work, so I went to CodeGen again, and selected Users from the drop-down. I was unsure what it meant precisely to create a View in this context, so in the View name text box I entered test.
Clicked Preview then Generate
The CodeGen failed to generate valid Haskell code (since type and module names cannot be lowercase). The attached screenshot shows the Preview step, including the invalid code.
The text was updated successfully, but these errors were encountered:
The {$nameWithSuffix} will always produce something like data X = {X} which is always invalid haskell. I guess it's just a typo and should be ${nameWithSuffix}
Thanks for the reply! Seems like a good beginner issue, so I'd like to have a go at fixing it.
Aside: it took me ~10 minutes of re-reading your last comment to see the difference between {$nameWithSuffix} and ${nameWithSuffix}, so I'm not surprised this issue came up!
The steps I took, as an IHP beginner, just working with the web console:
users
, using CodeGenusers
in the Controller name text box (notice the console correctsusers
→Users
so it's capitalised)test
.The CodeGen failed to generate valid Haskell code (since type and module names cannot be lowercase). The attached screenshot shows the Preview step, including the invalid code.
The text was updated successfully, but these errors were encountered: