Introducing Halogen IHooks

Hey all! Small announcement - I’ve open-sourced a new Halogen hooks library that’s split off from code we’re using internally at Meeshkan for our webinars: GitHub - mikesol/purescript-halogen-ihooks: A hooks library for purescript-halogen.

The library is a mix of:

  • purescript-halogen-hooks by @thomashoneyman . I learned a lot from reading his code (thank you!), and halogen-ihooks has a Compat module that implements the same API as halogen-hooks.
  • purescript-wags. It uses the same indexing strategy that I use there for audio units, which has nice IDE support as the indices are part of the type and hover-over-able.

I hope you get a chance to try it out, and many thanks to Thomas for iterating back and forth with me as I put it together!

If you have any questions, please ask them here - I’m happy to help you get started & to dive a bit more into the difference between this & halogen-hooks (they have different API surface areas, performance characteristics and design patterns).

5 Likes