|
@bkase_ | |||||
|
Barbq, my macOS status bar, is starting to become usable: It's written in Haskell with a custom @paf31 style Comonadic UI layer on top of the "vty" package for the status bar widgets. pic.twitter.com/6BI9WpI93r
|
||||||
|
||||||
|
Brandon Kase
@bkase_
|
21. stu |
|
Components: pic.twitter.com/kbbNZ6F748
|
||
|
|
||
|
Brandon Kase
@bkase_
|
21. stu |
|
Just realized Handler and Responder are the same :/
|
||
|
|
||
|
Brandon Kase
@bkase_
|
21. stu |
|
Also I’m using Free applicatives to model the data providers for the different widgets so I can compose them with no IO even though I need it to thread the bits together. It’s really fun to use these things
|
||
|
|
||
|
Tomás Ruiz-López 👨🏻💻 at dotSwift 🇫🇷
@tomasruizlopez
|
21. stu |
|
I’d love to read the code if you ever release it
|
||
|
|
||
|
Brandon Kase
@bkase_
|
21. stu |
|
Okay warning: I haven’t done a pass to properly split up the code into enough files etc etc, but feel free to take a look github.com/bkase/barbq
|
||
|
|
||
|
dimsumthinking
@dimsumthinking
|
21. stu |
|
Can you point me at something that would help me understand what you mean by comonadic ui layer
|
||
|
|
||
|
Brandon Kase
@bkase_
|
21. stu |
|
I think I can explain it well in person, there’s not much material on it that I know of: Just a series of blog posts and a paper by @paf31 functorial.com/the-future-is-… and blog.functorial.com/posts/2016-08-…
|
||
|
|
||
|
Bruno Berisso
@QueDijoQueDijo
|
21. stu |
|
These looks pretty cool! I have at least 4 unfinished project I started playing with Vty and this idea never came to my mind
I'll give it a spin to the code for sure. Thanks for sharing 👍
|
||
|
|
||
|
Brandon Kase
@bkase_
|
22. stu |
|
It’s surprisingly ergonomic
|
||
|
|
||
|
|
Jonathan Daugherty
@jtdaugherty
|
21. stu |
|
You might also consider: github.com/jtdaugherty/br…
|
||
|
|
||
|
Brandon Kase
@bkase_
|
21. stu |
|
At first I was trying to make a Brick backend of the comonad components but I found it simpler to bind to vty directly
|
||
|
|
||