magic: Interface to C file/magic library
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.
Note: this package requires the C libmagic library (part of the file
package) and its development headers to be installed at build time.
[Skip to Readme]
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| dev | Turn on developer settings, notably -Werror. | Disabled |
Automatic Flags
| Name | Description | Default |
|---|---|---|
| pkgconfig | Use pkg-config to locate the C libmagic library. Enabled by default;
because this flag is automatic, Cabal's solver transparently falls back
to plain | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- magic-2.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 1.0.5, 1.0.7, 1.0.8, 1.1, 1.1.1, 1.1.2, 2.0.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.9 && <5), bytestring (>=0.10 && <0.13), deepseq (>=1.4 && <1.6), filepath (>=1.4.100 && <1.6), os-string (>=2.0 && <2.1), text (>=1.2.3 && <2.2) [details] |
| Tested with | ghc ==9.6.7 || ==9.8.4 || ==9.10.3 || ==9.12.4 |
| License | BSD-3-Clause |
| Copyright | Copyright (c) 2005-2009 John Goerzen |
| Author | John Goerzen |
| Maintainer | Philippe <philippedev101@gmail.com> |
| Uploaded | by philippedev101 at 2026-06-09T15:09:45Z |
| Category | Text |
| Home page | https://github.com/philippedev101/magic-haskell |
| Bug tracker | https://github.com/philippedev101/magic-haskell/issues |
| Source repo | head: git clone https://github.com/philippedev101/magic-haskell.git |
| Distributions | Arch:1.1.1, Fedora:1.1, LTSHaskell:1.1, Stackage:1.1.2 |
| Reverse Dependencies | 7 direct, 0 indirect [details] |
| Downloads | 12478 total (30 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs uploaded by user Build status unknown [no reports yet] |