Live data from Hacker News

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

ihp.digitallyinduced.com

11–20 of 40 posts

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

#11
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…

Type safety on its own does not guarantee program correctness, nor does it eliminate the need to write tests.

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

#12
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…

Don't need to write _type_ tests (like you would in a dynamic language). Having strong typing doesn't magically do formal validation on your logic. Leaning heavily on types is good practice, but that doesn't eliminate most of the high value tests you'd have to write.

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

#15
Wow, just started watching video, this is really nice. The integrated environment, db and everything makes it super easy to get started. I guess you made it so you just have no excuses to try this out.

Big thank you for developers.

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

#16

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 libra…

It looks great!

Do you think the web-based IDE is enough to be productive? For example, could this work on a Chromebook (in browser) or an iPad Pro (browser only)?

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

#18
post #17

I've been meaning to pick up either Haskell or OCaml for my next language. On the OCaml side, I see Cornell's free CS 3110 textbook recommended around here. Is there something similar on the Haskell side?

We used http://www.learnyouahaskell.com/ in my PL class in college, I enjoyed it

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

#19
post #16

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 libra…

It looks great! Do you think the web-based IDE is enough to be productive? For example, could this work on a Chromebook (in browser) or an iPad Pro (browser only)?

The IDE is mostly designed as an extension to an editor heavy workflow (e.g. I use Sublime + VIM to build IHP itself). So it's unlikely to work well with a Chromebook. A workaround might be to use the GitPod integration for a web based code editor.

The IDE is btw entirely optional and everything can be done via code. E.g. all operations done via the visual Schema Designer are saved in the Application/Schema.sql file. That file can be edited from a code editor as you want. All operations in the schema designer operate on the AST of the parsed Schema.sql file.

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

#20

Wow, just started watching video, this is really nice. The integrated environment, db and everything makes it super easy to get started. I guess you made it so you just have no excuses to try this out. Big thank you for developers.

Thanks! :) I appreciate your feedback
Post reply on HN