Hi, I am following the doc for creating my first project with ihp,
after the command ./start, I get this trace :
direnv: loading ~/Documenti/sketchbook/blog/.envrc
direnv: export ~PATH
[("ihpVersion","1.0.1"),("…
I need details on deploying an IHP app using docker on AWS EC2. Specifically I need to know where the SSL Certificate should be. The link from the deploy doc to http://harlambert.co.uk/ihp_notes/ appears to be broken. Thanks for any help…
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…
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)
…
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…
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…
Hello everyone,
I am looking for a little help with the usage of validateFieldIO, as I am not used to the IO Monad yet.
My user creates a bill for one of his clients by selecting him in a form in the NewBill action.
The user is presented wi…
Hello,
Love hacking on IHP so far, but I am confused about the code formatting config I should use so it is consistent with formatted code, any recommendation?
Alternatively, I tried a heavy handed formatting of all haskell files of the boi…
It would be nice to have a way to inspect (and edit?) all routes. Perhaps also to design a set of routes and obtain the Actions for them...
Is there something like that already, or a plan to have it?
…
When using withCustomErrorMessageIO, it adds the custom error message to whatever error happens to be there... That is, if I do:
...
|> validateField #name nonEmpty
|> withCustomErrorMessageIO "Name is already taken"…
Hi!
File uploads are failing for me and I am unsure of what the reason can be.
I get this error from sentry:
/tmp/ihp-upload-6de360a7d350dccc: createDirectory: does not exist (No such file or directory)
This is the function that uploads an…
I am planning to buy IHP and IHP Cloud. I am a Mac user. I tried to install IHP on my MacBook Air M1 with Mac OS Monetary. It did not work. What is the best Mac System to install IHP?
Thanks.
…
Hi!
I'm trying to attach a file to an IHP endpoint and catch that file with fileOrNothing, but nothing I try works. Tried everything from base64 to ArrayBuffer and File type in JS, but fileOrNothing ignores it.
I have primarily tried to…
Dear all,
I just tried to install IHP according to this installation procedure here: "https://ihp.digitallyinduced.com/Guide/installation.html". It seemd to work but when creating the very first project with "ihp-ne" acc…
I noticed that the IHP fill function gives a could not deduce (ParamReader Value) type error when trying to populate a record field with type JSONB.
The application here is just looking to store the raw JSON payload from n AJAX request. I&#…
I'd like to set cookies to manage access to a service via Cloudfront. Is there a best-practice way of setting a simple cookie {key}={value}?
I'm having trouble parsing through the Session cookie code for inspiration.
…
I have a service that grabs things from the internet and puts in in postgres, how do i define that in ihp?
in other deployments it gets run as a systemd unit.
Is the best way to run it as an IHP Job?
…
Say I have a Post with many to many relationship to tags.
It's nice to add the tags as a comma separated list when creating a post.
That means I need to update two records at the same time. That seems fine. However, i struggle with the …
when execute the ./start of the blog example, got the following error:
error: cycle detected in build of '/nix/store/mhgprkxfnmjglp547skvagf4kwikd23h-ormolu-0.1.4.1.drv' in the references of output 'bin' from output 'out…
I have ihp pro now, build the code again and everything looks fine. But I didn't find "ihp-app-to-docker-image" command, it is a pro feature and document said it can be used in the "application" folder.
Where is this…
Going through the docs and wanted to check out the live demo of the Slack-Like app (https://ihpchatexampleapp.ihpapp.com/).
The url returns an HTTP 502.
Was the live demo taken down for some reason?
Any other tips or ideas?
…
Hi! I tried cloning the template for Gitpod but when I fire it up, I get the following errors:
Warning: haddock-interfaces: /nix/store/sar2db2iiy3dmw7sag30zgwdl299i9mq-bytestring-builder-0.10.8.2.0/share/doc/x86_64-linux-ghc-8.10.4/bytestri…
Hi!
I have a habit tracker on my app, and every time I mark that I have for example exercised today, I want to schedule an action to be performed just after midnight (at the users LocalTime), meaning at the very start of the following day.
…
Posted a question to the stackoverflow ihp tag:
https://stackoverflow.com/questions/69740767/making-a-simple-form-type-safe
This one builds on the simple temperature conversion app I posted in my last question. The idea here is to have the …
Posted a question to the stackoverflow ihp tag:
https://stackoverflow.com/questions/69472377/change-location-of-controller-pages
Any suggestions welcome there or here.
Thanks!
…
Hey y'all,
I posted the following to stackoverflow yesterday:
Define a QueryBuilder by filtering then sorting
No answers so far, so I thought I'd check here so see if anyone has any suggestions. :-)
The section Update 1 shows an app…
So I've been trying to follow the docs to make the blog demo, and something caught my attention: there's a code generator, which using only the prompt "Posts" spat out a whole component, pagination included... And I'm …
Hi! Newcomer here, both to web development itself, and even more to the Haskell / IHP community (loving it so far, BTW).
And I've been wondering wether IHP will be enough for the projects to come.
Let's say I need to build an Instag…
Hey y'all,
I posted the following question to stackoverflow:
https://stackoverflow.com/q/68960202/268581
Fyodor there suggested it may be a bug in the template compiler. Is that something on the IHP side? Or part of some other library w…
Im running ihp in gitpod.io and the localhost gets proxied, so hot reload stops working. I belief the common solution to this is letting users specify hmr port. Ideally the front-end side would just modify the localhost part itself if it de…
A short (6 minute) video demonstrating that IHP projects can have a different layout that's closer to what you see in an ASP.NET Core Razor Pages project:
https://youtu.be/WhCiBZNc15Y
The git branches that I reference:
https://github.co…
We're currently reworking some of the visual design of IHP. While it's not yet live, I'm happy to share what the new logo is going to look like:
What do you think?
…
Hey, I just pushed an update to the IHP forum.
Here's the most important changes:
It's now integrated into the main IHP website instead of running at forum.ihpapp.com
You can now log in with GitHub
If you log in via GitHub you…
Hello!
I got started with IHP recently and think it's fantastic so far. One issue I've had is related to the performance of the Haskell Language Server in an IHP project.
When it starts up, I've noticed it will peg a few cores o…
I was trying to complete the hello world tutorial (blog).
After running `./start` file, the server starts and I can see all the pages. However, there is a message -
```
initdb: cannot be run as root
Please log in (using, e.g., "su…
Hi, sorry for the noise, but I'm trying to join the Slack from the URL https://ihp.digitallyinduced.com/Slack, but I get an error saying "This link is no longer active". Can you update the link?
…
Hi - I've recently started using IHP for a personal blog and am finding it a real pleasure so far. One thing that slightly surprises me is that it seems storing the blog posts in the database seems to be the only way to go. This feels a…
Hi there,
I have developed the backend for a web app as an HTTP API (using Servant + Warp), and I would like to use IHP to develop the web part against this HTTP API.
As far as I can see, IHP starts at the database schema level, and generat…
Time for the next release of IHP: v20201213 🎉
Major Changes
Job Queue: We added a new job queue system that allows you to schedule jobs that are going to be executed outside the normal request-response cycle by a job worker running in the…
It's time for the next release of IHP: v20201030 🎉 This release mainly focus on improving existing functionality and making things more stable :) Since the last release we also reached an important milestone: IHP is now the second bigge…
Hi,
I'm following the First App tutorial and I'm running into this error when creating a controller named 'Posts'.
What could have gone wrong? And how can I get going again?
To reproduce:
sudo ihp-new blog
sudo chown -R …
It's time for the next release of IHP: v20201030 🎉 This release mainly focus on improving existing functionality and making things more stable :)
Major Changes
Database Connection Pool: IHP now comes with a new database connection poo…
I have the latest version of VS Code (on Ubuntu Linux) and I am trying to follow the instructions in the recent video about Haskell integration to VS code.
But when I try to get the command to set the environment variable as described in th…
It's time for the next release of IHP: v20201016 🎉
Major Changes
Haskell Language Server Support: You can now get cool IDE features by using Haskell Language Server. It works mostly out of the box after updating to this IHP version. C…
It's time for the next release of IHP: v20201002 🎉
Major Changes
Realtime UI Updates with IHP AutoRefresh: Whenever a INSERT, UPDATE or DELETE happens to the records used by your action IHP will rerun your action on the serverside. Wh…
It's time for the next release of IHP: 20200918 🎉
Major Changes
Depoyment Documentation: Finally it's here. You can find it inside the Guide. Share your IHP apps with the internet! :). You can find details on how to deploy with IH…
I started learning IHP and after finishing the "Your first project" part in the IHP Guide, I saw how actions where used as routes in two ways:
<a href={pathTo NewPostAction}><...
<a href={ShowPostAction}><...…
It's time for the next release of IHP: 20200904 🎉
Major Changes
Composite Primary Key Support: You can now use tables that have a primary key consisting of multiple columns. This helps you to handle complex database schemas with IHP.…
We've just released a new IHP version! :)
Major Changes
Numeric Primary Keys Supported: IHP now allows numeric (Serial in Postgres-speak) primary keys. Previously only UUIDs have been supported. UUIDs will still be the default. This f…
I was just wondering if an "IHP Forum" Topic would be a good idea? That way any suggestions/improvements for the IHP Forum could be discussed there. It might also be a place to raise small bug fixes that are too small to justify a…
I'm finding the live loading in the browser sometimes dies while I'm editing the code. My setup is on MacOs Mojave/Firefox and I'm editing the haskell code directly using VI/nerdtree. The IHP development server is still running …