A library for writing comonadic renderers with Halogen.
The library is comprised of two modules:
Halogen.Cf
: core library.Halogen.Cf.Sugar
: one-liners for stuff that I found myself writing over and over.
myComponent = HCf.component HCf.defaultOptions
({ count: 0 } # fixCf2 \render { count } _ -> do
pure $
HH.button
[ HE.onClick \_ -> HCf.doThis render ({ count: count + 1 }) ]
[ HH.text $ show count ])
Check out the ./example. A live version is here.
Contributions are welcome! If you feel anything could be improved or needs more clarity, please don't hesitate to open an issue or make a pull request.
- Performance
- Type-safety
- Small core API (less than 300 lines of code)
- Small components