# unix-compat

> A portable POSIX-compatibility layer for Haskell

Source: https://talira.ai/catalog/unix-compat-917e7sfv
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / system bindings](https://talira.ai/categories/libraries/system-bindings), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Haskell package janitors](https://talira.ai/orgs/haskell-pkg-janitors.md)

unix-compat is a Haskell package with portable implementations of parts of the `unix` package: where `unix` is available it re-exports it, and where it isn't it uses its own portable versions, so code written against POSIX functions builds on more platforms. It was written by Björn Bringert, Duncan Coutts, Jacob Stanley and Bryan O'Sullivan and is now maintained by the Haskell package janitors.

## Links

- GitHub: https://github.com/haskell-pkg-janitors/unix-compat

## Problems it solves

- make my Haskell program that uses the unix package build on Windows
- use POSIX file functions in Haskell code that also has to build where the unix package isn't available
- cross-platform POSIX functions for a Haskell library

## Features

- portable implementations of parts of the unix package
- re-exports unix where it's available
- portable fallbacks where the unix package isn't available

## Trust

Overall: 0.23 out of 1.
Signals: maintenance 0.27, adoption 0.14, momentum 0.01, community 0.58, backing 0.30, extensibility 0.00.

- 4 GitHub stars
- 28 contributors
- backed by Haskell package janitors

Warnings:

- last commit 10 months ago

## Alternatives

- [unix (Haskell)](https://talira.ai/catalog/unix-haskell-je0cqvg0.md): POSIX functionality for Haskell
- [Win32 (Haskell)](https://talira.ai/catalog/win32-haskell-6p7zfhdd.md): Direct Haskell bindings to the Windows Win32 API

## Sources

[^1]: https://github.com/haskell-pkg-janitors/unix-compat/blob/main/LICENSE (checked 28 Nov 2026)
[^2]: https://github.com/haskell-pkg-janitors/unix-compat/blob/main/unix-compat.cabal (checked 28 Nov 2026)
