Fudgets is primarily a Graphical User Interface Toolkit implemented in Haskell on top of its own binding to the Xlib library of the X Windows system. Fudgets also makes it easy to create client/server applications that communicate via the Internet. The Hello world program fits on a single line:
main = fudlogue (shellF "Hello" (labelF "Hello world!"))
The key abstraction is the fudget. A fudget is a stream processor with high-level and low-level streams. The high level streams are used for communication between fudgets within a program. The low level streams are for communication with the I/O system.
Fudgets are combined using various combinators for parallel composition, serial composition and loops.
Fudgets was originally implemented in Lazy ML in the early 1990s, then converted to Haskell. It was thus designed before monadic IO was introduced in Haskell and early versions did not make use of Haskell's type classes at all.
- Your first 8 Fudgets program. Gentle Introduction.
- Fudgets User's Guide. Naming conventions and some other practical things.
- Fudget Library Reference Manual. (Haddock did not exist back when Fudgets were created.)
- The FPCA-93 paper about Fudgets, the first publication describing Fudgets.
- See the Fudgets home page for more info.
sudo apt install libxext-dev
(installs Xlib etc on Debian-based distributions, the command will be different on other Linux distributions.)cabal install fudgets
- Install XQuartz.
brew install gcc
(need the version cpp included with gcc, since there are some issues with cpp from clang. Note:fudgets.cabal
refers tocpp-10
, you might need to change this if you install a different version of gcc.)cabal install fudgets