libmagic: Interface to C file/magic library

[ bsd3, library, text ] [ Propose Tags ] [ Report a vulnerability ]

This package provides a Haskell interface to the C libmagic library. With it, you can determine the type of a file by examining its contents rather than its name. The Haskell interface provides a full-featured binding.

Modules

[Last Documentation]

  • Magic
    • Magic.Data
    • Magic.Init
    • Magic.Operations
    • Magic.Types

Flags

Automatic Flags
NameDescriptionDefault
pkgconfig

Use pkg-config to find libmagic. Cabal automatically falls back to extra-libraries when pkg-config does not find it.

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.2, 1.3, 1.3.1, 1.3.2, 1.3.3
Change log CHANGELOG
Dependencies base (>=3 && <5), bytestring (<0.13), filepath (>=1.5.4.0 && <1.6), os-string (>=2.0.0 && <2.1) [details]
License BSD-3-Clause
Copyright Copyright (c) 2005-2009 John Goerzen
Author John Goerzen
Maintainer Joey Hess <id@joeyh.name>
Uploaded by JoeyHess at 2026-11-13T21:54:17Z
Category Text
Source repo head: git clone https://git.joeyh.name/git/haskell-libmagic.git
Distributions
Downloads 20 total (20 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2026-11-14 [all 2 reports]