Live data from Hacker News

Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix

ihp.digitallyinduced.com

1–10 of 40 posts

Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix

#2
It looks like Docker support is still a paid feature? That's disappointing. I had written a blog post outlining how important docker support was and explaining how little work it was to get working, and at the time the maintainers agreed it should be a free feature, but it seems they've changed their minds.

Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix

#3
One of the nice features of IHP is that, thanks to Haskell’s strict type checking, it does not just eliminate bugs, it also speeds up development. E.g. if you want to change or build a new feature, you don’t need to write tests for it since the compiler basically does that for you. Since you don’t need to write tests, your work is perhaps half of what it would be normally – and neither do you have to know how to write good tests, which is an entire skill in itself.

Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix

#4
post #2

It looks like Docker support is still a paid feature? That's disappointing. I had written a blog post outlining how important docker support was and explaining how little work it was to get working, and at the time the maintainers agreed it should be a free feature, but it seems they've changed their minds.

There's some unofficial ways to build docker images, check https://zacwood.me/posts/building-ihp-apps-github-actions/ :)

We've not changed our minds on docker becoming a free feature eventually. We just didn't update the pricing yet, but this is planned for the near future.

Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix

#5
post #2

It looks like Docker support is still a paid feature? That's disappointing. I had written a blog post outlining how important docker support was and explaining how little work it was to get working, and at the time the maintainers agreed it should be a free feature, but it seems they've changed their minds.

If it's using nix for building - there's multiple ways to DIY turn that into a docker container, like pkgs.dockerTools.buildImage or nixpacks:

https://github.com/railwayapp/nixpacks

Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix

#6
post #2

It looks like Docker support is still a paid feature? That's disappointing. I had written a blog post outlining how important docker support was and explaining how little work it was to get working, and at the time the maintainers agreed it should be a free feature, but it seems they've changed their minds.

If it's using nix for building - there's multiple ways to DIY turn that into a docker container, like pkgs.dockerTools.buildImage or nixpacks: https://github.com/railwayapp/nixpacks

IHP is really easy to package with nix nowadays. In fact the official docker building also just uses `pkgs.dockerTools.buildImage` and calls nix-build :) Most people with nix experience can easily figure out how to do exactly the same thing as the "official" way.

Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix

#7
IHP is already used in production for a number of commercial projects, but I'd also highly recommend the framework for anyone interested in just learning and hacking away with haskell. The IHP IDE is a great playground and you are automatically set up with a postgres db, ghc, hls, etc. So a lot of the configuration barrier is removed and you can just start writing Haskell and experimenting with some of the cool libraries on hackage.

Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix

#9
post #3

One of the nice features of IHP is that, thanks to Haskell’s strict type checking, it does not just eliminate bugs, it also speeds up development. E.g. if you want to change or build a new feature, you don’t need to write tests for it since the compiler basically does that for you. Since you don’t need to write tests, your work is perhaps half of what it would be normally – and neither do you have to know how to writ…

Not sure if you're being sarcastic, but Haskell developers should definitely write tests, and good ones know how to write good tests. The type system eliminates the need for some forms of testing, but not all.

Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix

#10
post #8

Is this something I can play with despite zero knowledge of Haskell?

Yes, you can get pretty far without knowing anything about Haskell. Once you've something on the screen you'll eventually get to learn a bit more about functional programming and Haskell.

A good starting might btw be our IHP Casts Youtube playlist https://www.youtube.com/watch?v=PLl9Sjq6Nzc&list=PLenFm8BWuK...

Post reply on HN