Applications and libraries/Operating system
Operating Systems and Systems Programming
See also research papers on this topic.
Standalone operating systems
- House is a platform for exploring various ideas relating to low-level and system-level programming in a high-level functional language, or in short for building operating systems in Haskell. A more up to date, unofficial version.
- Kinetic is an operating system where the expressiveness of Haskell's type system guides the design of operating system features and facilities.
- Hos is an x86-64 microkernel-based operating system written in Haskell 98 and compiled with JHC. With the exception of the bootstrap code, architecture-specific task switching, and low-level memory manager, all parts are written in Haskell. It currently supports user-space cooperative (for-now) multitasking, IPC, ELF loading, and has the beginnings of an ATA driver. The kernel and user space interaction is expressed as a continuation with the kernel yielding to a user space thread and waiting for the user space to yield control back (either explicitly or through an interrupt or trap). Patches welcome! For help building, e-mail firstname.lastname@example.org
- Halfs, the Haskell Filesystem
- Halfs is a filesystem implemented in Haskell. Halfs can be mounted and used like any other Linux filesystem, or used as a library.
- Oleg Kiselyov's zipper-based file server/OS where threading and exceptions are all realized via delimited continuations.
- Debian From Scratch
- A single, full debian rescue CD. The tool that generates these ISO images (dfsbuild) is written in Haskell.
- OmegaGB is a Nintendo Game Boy emulator written in Haskell.
- ZMachine is a Z-machine (Infocom's interactive fiction VM) interpreter which currently needs attention to its UI rather badly. This points to the darcs repository, as I suppose you can tell. It uses Gtk2Hs, but it just goes down hill from there. Help welcome! --SamB 03:40, 6 December 2006 (UTC) (the author)
- A lightweight X11 window manager.
- A tiling window manager based on xmonad which focuses on making the tiling paradigm easily accessible to users coming from traditional window managers by drawing on known conventions and providing both mouse and keyboard access for all features. It also tries to be usable 'out of the box', requiring minimal to no configuration in most cases.
- A non-tiling window manager with a plugin architecture
- A (near-)clone of the GNU ls utility.
- h4sh provides a set of Haskell List functions as normal unix shell commands. This allows us to use Haskell in shell scripts transparently. Each program is generated from the corresponding Haskell function's type
- Luis Araujo's Haskell gui frontend to Emerge
- David Roundy's combination of a nice DarcsIO-style filesystem interface on the Haskell side (called FuseIO) with an interface to libfuse (which is a library for creating filesystems from user space on linux).
- Jeremy Bobbio's fuse bindings.
- A library binding to inotify, providing file system event notification, by simply add a watcher to a file or directory and get an event when it is accessed or modified.
- Library support for dynamically loading Haskell modules, as well as compiling source or eval code fragments at runtime.
- An old small library, based on runProcess in the standardised posix library. It provides lazy output from subprocesses.
- Process is a fun library for easing decomposition of algorithms to several processes, which transmit intermediate data via Unix-like pipes. Each sub-process is just a function started with forkIO/forkOS with one additional parameter-pipe.
See also concurrency and parallelism
- This module provides an advanced option parsing routine which can properly parse options depending on what types are infered for them as well as produce a pretty error message with usage info when an incorrect option is used.
- Discussion on Reddit. Turtle (see elsewhere on this page) provides a beginner-friendly wrapper: Reddit link
- TimeLib is an attempt to redesign the current library for handling time (System.Time), balancing expressive functionality and intelligible simplicity. Now at version 0.2, TimeLib features representation of TAI, UTC and UT1, as well as Gregorian, ISO 8601 week, and "year and day" calendars, time-zones, and functions for strftime-style formatting. We'd like to collect some additional documentation on this wiki, too: Time library
- ParseDate provides a function for parsing dates and times given a date format string.
- Provides the function 'rdtsc' for accessing the time stamp counter on modern IA-32 processors. This is a 64-bit counter which counts the number of ticks since the machine has been powered up. Using this instruction, you can make very precise time measurements.
- A simple terminal interface library. It provides: handling of suspend/resume, window resizes, minimizes repaint area, automatically decodes keyboard keys into (key,modifier) tuples, and more!
Haskell shell examples
- A library for using Haskell for tasks which are usually done by shell scripts, e.g. command line parsing, analysing paths, etc. It can be used also for tasks usually done GetOpt (a module for GNU-/POSIX-like option handling of commandline arguments). But also for many other things.
- Jim Mattson's Hsh Haskell shell
- on the software page by Ralf Hinze. Hsh seems to be written in Haskell 1.3.
- a nascent project page on a shell scripting system
- Monadic i/o and UNIX shell programming
- UNIX pipes as IO monads.
- start an external shell command asynchronously, write data to its standard input and read results from its standard output. There is a Darcs repository with a cabalized version.
- shell with some scripting capabilities to use Haskell as a scripting language.
- Haskell Shell (HSH)
- HSH, the Haskell shell. Things are still very preliminary in many ways, but this version already lets you:
- Run commands
- Pipe things between commands
- Pipe command input/output into and out of pure Haskell functions
- Pure Haskell functions are as much a first-class citizen as is grep or cat
- a convenient library for shell scripting using modern (Text) and safe (sytem-filepath) techniques and featuring good error messages.
- Procedures written in this monad produce shell scripts.
- Turtle is a reimplementation of the Unix command line environment in Haskell so that you can use Haskell as a scripting language or a shell.
- Haskell Extensible Shell, makes writing scripts in Haskell easier. Uses Template Haskell.
- A simple read-eval-print (REPL) loop for Haskell that has some simple awareness of the current directory and completion works.
- Makes Haskell functions available as unix shell commands.
Link collections on pure functional shells
- magic-haskell is a binding to the libmagic library. With magic-haskell, you can determine the type of a file by looking at its contents rather than its name. This library also can yield the MIME type of a file by looking at its contents.
- IFF parser
- Parse files in the Interchange File Format by Electronic Arts as used in AIFF, ILBM, 8SVX and so on. Creation of IFF files is planned.
- A Haskell reimplementation of the C mktemp/mkstemp/mkstemps library from OpenBSD
- Koen Claessen's binding to common unix functions.
- A Haskell library for working with files and directories. Includes code for pattern matching, finding files, modifying file contents, and more.
- Manages an error log with proper locking. has a number of useful routines for detecting and reporting erronious conditions.
- Multiple debug levels and log file support
This page contains a list of libraries and tools in a certain category. For a comprehensive list of such pages, see Applications and libraries.