GUI programming in Idris?

866 views
Skip to first unread message

Keith Pinson

unread,
Dec 19, 2015, 12:13:49 PM12/19/15
to Idris Programming Language
Has anyone been doing GUI programming in Idris? If so, how are you doing it?

I imagine you could do something with the FFI and actually write the view code itself in another language. I haven't got around to trying anything yet, I was just wondering whether anyone had tried it.

I did see there was a curses library, for a TUI. https://github.com/JakobBruenker/curses-idris

Jeremy Shaw

unread,
Dec 21, 2015, 6:04:34 PM12/21/15
to idris...@googlegroups.com
I was hoping to do some GUI programming by starting with an OpenGL binding. But then it turns out they went and changed OpenGL a whole lot since I last used it, and I never finished learning how modern OpenGL works :-/

Another option might be to use the Idris javascript backend and target <canvas>.

I am most interested in a GUI that is actually designed around the strengths of Idris rather than trying to sanitize some OO UI so that it is accessible from Idris. That is why I am focused on low-level bindings that do not provide any high level widgets.

- jeremy

--
You received this message because you are subscribed to the Google Groups "Idris Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idris-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

datha...@gmail.com

unread,
May 28, 2016, 1:18:22 AM5/28/16
to Idris Programming Language
Has anyone looked at throwing together some direct one-to-one bindings to a low-to-mid level Haskell GUI library? WxHaskell seems like a reasonable choice to start with. Since Idris already seems to have some native FRP stuff, it shouldn't be too hard to then implement a Phooey or Reactive Banana -like library natively on top of that (obviously with some additional Idris-y type safety stuff).

Melvar Chen

unread,
May 29, 2016, 8:18:16 PM5/29/16
to Idris Programming Language


On Saturday, May 28, 2016 at 7:18:22 AM UTC+2, datha...@gmail.com wrote:
Has anyone looked at throwing together some direct one-to-one bindings to a low-to-mid level Haskell GUI library? WxHaskell seems like a reasonable choice to start with. Since Idris already seems to have some native FRP stuff, it shouldn't be too hard to then implement a Phooey or Reactive Banana -like library natively on top of that (obviously with some additional Idris-y type safety stuff).

 
Since there is no way to call into Haskell besides through C, that does not seem like a useful approach.

Dean Thompson

unread,
Jul 27, 2016, 11:16:43 AM7/27/16
to Idris Programming Language
libui might be worth exploring. As wrapper examples, see ui and libui-node
Reply all
Reply to author
Forward
0 new messages