talira

Win32 (Haskell)

Direct Haskell bindings to the Windows Win32 API

open sourceBSD-3-Clausefree

Win32 is a Haskell library of direct bindings to the Windows Win32 APIs. It's a core GHC library, so it keeps its Haskell dependencies to a minimum. The Haskell Libraries team maintains it, with Alastair Reid, shelarcy and Tamar Christina as its authors.

Problems it solves

  • call Windows API functions from a Haskell program
  • use Windows registry, process or file APIs from Haskell
  • write Windows-specific code in a Haskell library

Features

  • direct bindings to the Windows Win32 APIs
  • a core GHC library with few Haskell dependencies
  • optional support for the os-string package

Limitations

  • Has no documentation of its own: its functions are documented by the equivalently named Windows API functions in Microsoft's docs.1

Alternatives

The same job

These do what Win32 (Haskell) does.

  1. unix (Haskell) POSIX functionality for Haskell
  2. unix-compat A portable POSIX-compatibility layer for Haskell

Compare Win32 (Haskell) with the top 3