Hacker Newsnew | past | comments | ask | show | jobs | submit | _query's commentslogin

In case this got you interested in Haskell, and you want a good way to start your Haskell journey (and have something to apply the optimization handbook to), check out IHP. It's the Rails/Laravel of the Haskell world. Here's a demo video https://www.youtube.com/watch?v=UbDtS_mUMpI You can start here https://ihp.digitallyinduced.com/Guide/index.html or check it out on GitHub here https://github.com/digitallyinduced/ihp


At IHP we've been using Algora for a while now and it works really great. Here's e.g. one PR that was merged last week with a bounty attached https://github.com/digitallyinduced/ihp/issues/1621 Everything was set up in less than 15 minutes and ioannis and zafer have been super helpful with any questions we had.

In general I think this is a good direction and an interesting take on the open question around sustainable open source. Congrats on the launch and keep up the great work! :)


thank you so much Marc!! super excited to have IHP on Algora, we love how the project streamlines web development in Haskell and helps new developers get started, really appreciate working together!


If you're interested in building web apps with Haskell, check out IHP. IHP is the Laravel/Rails/Django of the Haskell world. Might be a more pragmatic way to get into Haskell than SchoolOfHaskell

- Intro video demoing how to build apps with IHP: https://www.youtube.com/watch?v=UbDtS_mUMpI

- Docs to get started: https://ihp.digitallyinduced.com/Guide/index.html

- IHP reviews: https://www.g2.com/products/ihp/reviews


If you're not a fan of the ruby-on-rails / swiss army knife approach that IHP takes, check out Scotty. Add Lucid for Html rendering, and Selda for Postgres. (There are other options for any of these tools if you prefer)

  - Scotty (simple web routing) https://hackage.haskell.org/package/scotty
  - Lucid (html rendering) https://hackage.haskell.org/package/lucid
  - Selda (postgres) https://selda.link/


hmm, last time I used Scotty, I thought it was the exact opposite of Rails and more like Sinatra. It's less batteries included and more flexible and lightweight. Yesod is more like RoR, no? Maybe I'm misunderstanding what you mean by swiss army knife?


you missed the "not a fan" part


Oh gawd. I totally did, my bad! Time for more coffee. Thanks


Did selda get the hug of death?


IHP seems great, but I found it very hard to work with.

The guide said it takes 15 minutes to build initially...it took my laptop 1 1/2 hours. And I didn't use cachix (no idea what it was, didn't want it to mess with my system) so after a nix-gc I had to build again...

And the pro version costs $300/year, and goes up to $1500/year if you make $20k. That might be good for a huge company, but if that's a side project or a solo dev's income, that's way too expensive.


Cachix manages the prebuilt binaries used by IHP. If you don't install Cachix, nix will compile a lot of IHP's dependencies from scratch. This takes a long while and is not recommended.


It manages the prebuilt binaries...but requires being run as root or adding myself to the list of Nix trustedUsers...on an OS level.

Both of those things are scary and dangerous. I don't know what your software or Cachix is doing.

Can you tell me exactly what it will be doing to my system? What changes? Does it use a lot of disk space? Is it easy to undo? And is there anyone who recommends doing it who isn't associated to IHP?


Let alone that it appears on any forum that ever mentions haskell these days.


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?


There's a couple editor plugins to get you that: For VS Code: https://marketplace.visualstudio.com/items?itemName=s0kil.vs... for

For Sublime: https://packagecontrol.io/packages/Haskell%20HSX


Thanks! :) I appreciate your feedback


Here is more feedback. Installation of everything is a little bit hairy... It didn't work in my fish shell but I had to switch to zsh to make it work...

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.


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.


Really happy we've finally got to the 1.0 status :) If you like to take a look at the code, check our GitHub at https://github.com/digitallyinduced/ihp


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...


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.


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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: