Beta 18.09.2020
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 IHP Cloud or how to deploy your app onto your own infrastructure.
- Nested orderBy: You can now write a query like
query @User |> orderBy #firstname |> orderBy #lastname
. Previously the last call toorderBy #lastname
would overwrite the existingorderBy #firstname
. This has been added by @fegu 🎉 - error: file '/build/db/.s.PGSQL.5432' has an unsupported type <- fixed: A long standing issue causing the error message
error: file '/build/db/.s.PGSQL.5432' has an unsupported type
when starting IHP has been fixed by @ruhatch ! 🎉 This error happend when opening a new nix shell while the dev server is running. - New Function
getSessionAndClear
: Returns a session value and removes it from the session getRequestUrl
has been renamed togetRequestPath
to better reflect it's behavior. Also a newgetRequestPathAndQuery
has been added.- Basic Support for the
jsonb
: You can now easily store json inside your postgres with your IHP app. Right now this is just very basic support. Additional support for mapping the json will be added in the future. Currently you need to manually map it using aeson. - New Function
toSlug
:toSlug "IHP Release: 18.09.2020"
will turn the string into a url friendly version"ihp-release-18-09-2020"
.
Other Changes
- The default IHP Prelude now exposes more common haskell functions: throw, throwIO, catch, forever
- A nice error screen was added when
fetchOne
fails because no result was returned - Application production binaries now accept GHC RTS options at runtime
- Changed ghci prompt from lambda symbol to IHP as this caused encoding issues
- Fixed bug where the redirect url after login did persist for multiple sessions
- IHP's build process has been improved to avoid redundant compilation
- Time renders by
dateTime
is now working correctly in all locals :) Thanks @dansvo! - Fixed sql syntax in
fetchExists
- One last mention of TurboHaskell (the old name of IHP) has been removed.
- Lots of documentation fixes by @CharlesTaylor7 @fegu @ivanov
Updating
To update the IHP version of your project, open default.nix
and change the git commit in line 4 to the following:
rev = "0575a933331d45782ed732a5437ead377e165b29";
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 ./start
.
If you have any problems with updating, let us know on the IHP forum.
📧 To stay in the loop, subscribe to the IHP release emails. Or follow digitally induced on twitter..
📅 The next release is expected to be released on 02.10.2020.