It's time for the next release of IHP: 20200904 🎉
CREATE TABLE order_trucks ( order_id BIGSERIAL NOT NULL, truck_id BIGSERIAL NOT NULL, PRIMARY KEY(order_id, truck_id) );
This feature has been contributed by @ruhatch 🎉
paramnow have a beautiful error screen telling you about what do next. It also displays all submitted params, so you can quickly spot whether there was a typo.
SQL Logging only in dev mode: IHP will now not log sql queries when it's running in production mode.
Improved Data Tool in the Dev Tooling: The database access tool (below the Schema Editor in the IHP navigation) now makes more efficient use of screen space. We made a few small changes to improve the overall usability of the tool.
- The primary haskell json library
aeson is now exported by the ViewPrelude by default. No need to manually import it in your views anymore.
- A code generation issue caused by having a table with two foreign keys referencing the same foreign table has been fixed.
- An issue encoding with enums using multibyte characters has been resolved
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; is not required in your app's
Schema.sql anymore. It's automatically loaded by IHP.
- Support for empty attributes in HSX like
<input disabled/> has been added.
- Grammar fixes
- The make target
build/bin/RunOptimizedProdServer now correctly depends on
build/Generated/Types.hs. The target
build/bin/RunUnoptimizedProdServer already has this dependency.
- Dotless Emails are now validated correctly
- All IHP binaries are now compiled with
-threaded. Somehow we missed this. This improves the performance of the dev server.
- The default ghci prompt of a IHP is now a lambda symbol
- make targets for compiling IHP scripts have been added
- a naming issue causing
request not being easily useable in actions has been resolved
vYYYYMMDDstarting with this version.
To update the IHP version of your project, open
default.nix and change the git commit in line 4 to the following:
rev = "a12a1ce8f16814b802aae39eb26a9d3247192c12";
After that run the following command to update your project:
nix-shell -j auto --cores 0 --run 'make -B .envrc'
Now you can start your project as usual with
In case you get a compiler error about a missing field in
ModelContext in the auto-generated
build/Generated/Types.hs please stop your application and do a clean rebuild:
make clean nix-shell -j auto --cores 0 --run 'make -B .envrc' ./start
If you have any problems with updating, let us know on the brand new IHP forum.
📅 The next release is expected to be released on 18.09.2020.