Earlier quoted context omitted.
Thanks for the feedback. I am definitely a beginner in Haskell, which would explain why I came to this conclusion. Could you recommend some good sources on testing in Haskell?
While of course Haskell has more normal testing infrastructure available (eg. https://hspec.github.io/ ), my favorite bit of Haskell testing is QuickCheck, which IIUC started life in Haskell and has been reimplemented in other languages with various degrees of effectiveness and various degrees of connection to the original project. John Hughes (not the filmmaker) gives a great talk about it: https://youtu.be/zi0rHwfi…
Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix
31–40 of 40 posts
Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix
#32Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix
#33Why is the editor integration and autocomplete still so poor? Shouldn't strong types help with that?
With VSCode the editor integration and autocompletion should work really well. You can see a demo in this video: https://www.youtube.com/watch?v=_8_8XYO6rgY
Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix
#34Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix
#35Why is the editor integration and autocomplete still so poor? Shouldn't strong types help with that?
Check out the docs on editor integrations: https://ihp.digitallyinduced.com/Guide/editors.html With VSCode the editor integration and autocompletion should work really well. You can see a demo in this video: https://www.youtube.com/watch?v=_8_8XYO6rgY
Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix
#36Wow, 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
When you edit database, instead of waiting for you to click update, maybe you can prompt user after update... "Do you want to run migrations?"
Small things like that.
Overall I love functional aspects of it and will be playing more in days to come.
Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix
#37I'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?
Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix
#38Earlier quoted context omitted.
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.
Haskell's QuickCheck, AFAIK the first prominent implementation of property-based testing, gained its popularity partly because it eliminated a good part of the tedium by inferring the sampling strategies from the types (which in idiomatic Haskell are, due to liberal use of opaque type synonyms, often quite a bit more specific than in any other non-dependently-typed language I've seen). Which does not free the program…
Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix
#39Earlier quoted context omitted.
Check out the docs on editor integrations: https://ihp.digitallyinduced.com/Guide/editors.html With VSCode the editor integration and autocompletion should work really well. You can see a demo in this video: https://www.youtube.com/watch?v=_8_8XYO6rgY
The jsx seem not to have highlighting or completions?
For Sublime: https://packagecontrol.io/packages/Haskell%20HSX
Re: Show HN: IHP v1.0 – Batteries-included web framework built on Haskell and Nix
#40I'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?
I’m going through Effective Haskell. https://pragprog.com/titles/rshaskell/effective-haskell/ Pretty great resource, but still WIP.