IHP 1.3 is out now!
Create a new thread +
Allowing Cross-Origin Resource Sharing
Marc Linsangan
Hello. How should we set the configuration to allow CORS? I followed the examples in the API documentation by adding "option Cors.simpleCorsResourcePolicy" but couldn't make it work. Can anyone please show how to do it correct…
Add Response
Provide support for the new Node-less Tailwind CSS // Then default to Tailwind?
Daniel Clarke
Tailwind CSS can now be used without Node (details: https://tailwindcss.com/blog/standalone-cli). Other frameworks like Phoenix and Rails already provide support for this new Node-less Tailwind, with Rails creator DHH being particulary exci…
Add Response
How to configure a favicon?
Joachim Breitner
Should I just manually add a meta tag to Web/View/Layout.hs, or is there something more idiomatic? (An answer to that question might be useful on https://ihp.digitallyinduced.com/Guide/helpful-tips.html) …
Add Response
Error installing/running latest IHP on Mac with M1 processor
rwkhan
Command I'm running to upgrade to latest IHP: nix-shell --run 'make -B .envrc build/ihp-lib' Error I'm getting: error: cycle detected in build of '/nix/store/jqfx8z69709v0mh0qg4ybiahiwzv5zlb-ghcid-0.8.7.drv' in the r…
Add Response
unrecognized configuration parameter "rls.ihp_user_id"
Manborough
Hi everyone, I'm getting an issue when I try to create a post with a foreign key relationship to the users table. The user_id column has a default value of ihp_user_id(). I can create posts again when I remove the column. This is the…
Add Response
Getting error updating IHP to 0.19
rwkhan
I run IHP on a mac with M1 processor so now that they're finally supported I'm getting an error when I try to update using the following command: Command: nix-shell --run 'make -B .envrc build/ihp-lib' Error I'm getting …
Add Response
Reactive HTML forms
JGarber PRO
If I need to implement reactive HTML forms in an IHP project how would I go about doing that? Thanks. …
Add Response
Running IHP as a systemd service on NixOS
Lillo PRO
Hi! This might be mostly systemd related, but I'm trying to run IHP as a systemd service on a NixOS webserver, eventually on DigitalOcean for a service I am making. Currently testing locally on my NixOS machine with a fresh IHP project.…
Add Response
some imports are not found
JGarber PRO
When I add imports to the Web.Component.Counter sample program some imports work and some do not. Imports that work include Text.Read and Data.Text. Imports that don't work include Data.Tuple.Curry and Text.XML.HXT.Arrow.Pickle. Depe…
Add Response
How do you deal with money?
axelbdt
Hello again! I am looking for pointers on how to handle money/pricing. Based on the stripe integration example, I represent the price of a Trip as an Integer, i.e the number of cents. I still want the user to read and input a decimal number…
Add Response