Questions related to the Haskell web framework IHP (integrated Haskell Platform). https://ihp.digitallyinduced.com/
Questions tagged [ihp]
81 questions
0
votes
1 answer
How to achieve a user-defined order with IHP?
I need to order pages (defined by user, drag and drop), something like ("Hello", order 1), ("Bye", order 2) And then insert, let's say ("Good", order 1), so the collection would change to ("Good", order 1), ("Hello", order 2), ("Bye", order 3).
Any…

danielsokil
- 52
- 7
0
votes
0 answers
IHP: ./start: line 29: RunDevServer: command not found
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'
cannot go further, seek…

vajra
- 1
0
votes
1 answer
BadType routing failure in IHP even though types are defined
Context
I have a record with a field that is of type Day (which corresponds to a field with type DATE in my Postgresql database). I have a Create action which works fine (records are saved to the database). However, from the Create action, if I try…

stephenbenedict
- 95
- 7
0
votes
1 answer
Change location of controller pages
I have a simple IHP application which converts farenheit to celsius.
I've stripped out many of the files so that the bulk of the app is in the following…

dharmatech
- 8,979
- 8
- 42
- 88
0
votes
1 answer
How to iterate over values upon validation
I have a simple Biding service I'd like to build:
Each Item can have multiple Bids.
Each Bid has a reference to the Item and an Int price field.
When a new Bid is created I'd like to verify it's price is higher then the existing ones.
action…

amitaibu
- 1,026
- 1
- 7
- 23
0
votes
1 answer
Selecting some of One where there're none of Many
I'm trying to find domains that don't have any usernames with a given name, that is free domains. Hopefully there's a solution to this that doesn't require 2 separate queries, but I also ran into a problem with type system.
-- error Couldn't match…

janat08
- 1,725
- 2
- 16
- 27