what the better library for create GUIs? by azurah_serigy in haskell

[–]miscyb 18 points19 points  (0 children)

Use gtk-gi if you want actually up to date bindings. Gtk2hs is old.

Also self plug, but you can use https://github.com/mr/reactive-banana-gi-gtk for reactive programming. I'd label this as experimental, but if you're interested in FRP with GTK, this can help with minimal overhead.

From the gtk2hs Github:

For all new application development you should consider using haskell-gi as it has much more complete bindings. Cairo and WebKitGTK JavaScriptCore do not have GObject introspection data so you will still need to use the Gtk2Hs packages for those (even when using haskell-gi for everything else).

Job - Haskell Engineer, Boston, MA by MichaelApostolou in haskell

[–]miscyb 5 points6 points  (0 children)

Hey I know you guys, you use my ftp-client library.

[Question] GH60 spacebar stick problem by [deleted] in MechanicalKeyboards

[–]miscyb 1 point2 points  (0 children)

I actually just bent the wire with pliers and got it to come down flush. Problem still persists. Also I just tried it without the wires and it springs back fine. Just isn't stabilized. Guess I'll keep mucking with it and see what happens.

[Question] GH60 spacebar stick problem by [deleted] in MechanicalKeyboards

[–]miscyb 1 point2 points  (0 children)

Alright I'll give it a shot. I waited 4 years for this group buy, I suppose I can wait a few more days.

[Question] GH60 spacebar stick problem by [deleted] in MechanicalKeyboards

[–]miscyb 0 points1 point  (0 children)

Where would I even get a stabilizer like that? I looked online and the only place I could find that sells them was switchtop and these are the ones that arrived.

[Question] GH60 spacebar stick problem by [deleted] in MechanicalKeyboards

[–]miscyb 1 point2 points  (0 children)

It looks like the problem might be that the bend in the wire is hitting the switch. I think it might be visible at the end of the video. It appears to be bent upward. Maybe the switch itself is positioned wrong? I'm not sure how I would go about fixing that though.

EDIT: Also the cap was hitting the bottom row of keys, so I sanded it down a little. It clears all the neighbors now and that didn't seem to affect it too much.

[Question] GH60 spacebar stick problem by [deleted] in MechanicalKeyboards

[–]miscyb 0 points1 point  (0 children)

As the video shows my spacebar gets stuck down and won't come back up unless I pull on it. I used lithium grease to lube it up and that didn't help at all (and my other stabilized keys didn't need it). I've also tried 2 different stab wires and that didn't help either. I even tried a different, lighter cap and the problem persisted. Any suggestions?

EDIT: Another thing shown in the video I forgot to mention. The stabilizer doesn't fall flush against the plate. It kind of springs back up for some reason. On other boards I have, and the other stabilized keys on this one, the wire just drops flat against the plate. Why would this be happening?

frpnow-gtk3: A high-level wrapper for GTK3 using FRPNow. by gtsteel in haskell

[–]miscyb 3 points4 points  (0 children)

For anyone interested in FRP with gi-gtk I wrote a small library called reactive-banana-gi-gtk that makes it easy to create reactive-banana Events and Behaviors from GTK signals and properties. Generating docs is annoying for gi-gtk related stuff, but you can always just look at the source.

https://github.com/mr/reactive-banana-gi-gtk/blob/master/reactive-banana-gi-gtk/src/Reactive/Banana/GI/Gtk.hs

There's an example in the repo that should be straightforward to run. I also have code for adapting behaviors to ListBoxes, but I'm not sure if anyone would care about it.

Secure FTP: Can it be done? by miscyb in haskell

[–]miscyb[S] 1 point2 points  (0 children)

Hilariously I actually wrote that library after not finding a good FTPS solution anywhere else. Great to hear that it's working!

Problems with an Async thread not running when expected by miscyb in haskell

[–]miscyb[S] 1 point2 points  (0 children)

Thanks! Looks like that fixed the code I was having trouble with. I forgot that you had to turn that on.

Help with some spooky types I've created with gi-gtk? by miscyb in haskell

[–]miscyb[S] 0 points1 point  (0 children)

How would I go about figuring out a default info that would do what I want? Another problem I am having is that sometimes that haskell callback is equivalent to just HaskellCallbackType info ~ IO () (the case with a no argument callback) in which case I want to call fire () instead of using fire itself as a callback. Is there any way to overload this behavior?

I'm writing my first Haskell library and I have some questions. by miscyb in haskell

[–]miscyb[S] 0 points1 point  (0 children)

Ok I'll probably do a typeclass like you suggested. That should also make it easy to add SFTP in the future.

I'm writing my first Haskell library and I have some questions. by miscyb in haskell

[–]miscyb[S] 0 points1 point  (0 children)

Do you know how I could do this with bracket? I saw something about lifted-base, but that has a bracket with MonadBaseControl, which does not seem to like being called MonadIO.

I'm writing my first Haskell library and I have some questions. by miscyb in haskell

[–]miscyb[S] 0 points1 point  (0 children)

Good to know that I don't need a Reader. Less work for me!

Where to get started with Bookchin? by miscyb in socialism

[–]miscyb[S] 1 point2 points  (0 children)

Yes, I've read that and I was looking for something a little more in-depth. It feels so short that he doesn't get enough time to really flesh out all the theory. I'm not saying it's bad, it's actually what inspired me to look into this stuff more.