Making a GTK application in Haskell, part 1

(floreal.tech)

91 points | by Vosporos 4 hours ago

6 comments

  • pluc 43 minutes ago
    > import GI.Awd qualified as Adw

    please tell me that's a typo

  • seba_dos1 2 hours ago
    Replace `backdrop-filter` on `.backdrop::after` with `filter` on `.backdrop picture` for a free scrolling performance boost.
    • nh2 1 hour ago
      Indeed the scrolling performance is awful, makes reading it less enjoyable, especially when the topic is GUIs!
    • grimgrin 14 minutes ago
      desktop and mobile browsers have a reader mode icon you can click. it is useful for 1) this 2) website blocking fully loaded content with some paywall popup 3) and more!

      click it for a better time

  • mintik 32 minutes ago
    [dead]
  • birchcove 2 hours ago
    i've been writing Haskell GUIs for a few years and mostly stick to react-banana or reflex because wiring up gtk-gi signals manually gets messy fast. The Elm architecture pattern here looks clean on paper but I'm curious how you handle async events from the widget tree without ending up in callback hell. Did you end up wrapping all GI callbacks in a channel that feeds into your update loop?
    • freedomben 9 minutes ago
      Is Haskell in this case just binding a local HTTP port that users then hit with the browser? Or is it like a Tauri/Electron type of thing?
  • beanjuiceII 1 hour ago
    bro takes 2 years to make a todo list
  • drnick1 1 hour ago
    Just keep in mind that some people like me avoid Haskell and the huge package mess it causes on Linux. Pandoc is infamous for that. Just stick to C++.
    • kccqzy 28 minutes ago
      Does your distro not statically link Haskell libraries the way it’s meant to? Installing pandoc only requires libgmp.
    • Vosporos 1 hour ago
      That is entirely your distribution's fault. ArchLinux has a user-hostile packaging approach which I do not experience in Fedora.
      • klez 1 hour ago
        What does Arch do in particular to cause a mess? It's been a hot minute since I last used it and surely didn't use pandoc back then.
        • spider-mario 1 minute ago
          They build and link all Haskell libraries dynamically.
      • Ambolia 1 hour ago
        I completely avoid any haskell package in Arch and just build it with Stack, it's usually simple.