libmagic
CopyrightCopyright (C) 2005 John Goerzen
LicenseBSD
MaintainerJoey Hess,
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Magic.Init

Description

Initialization for magic programs

Written by John Goerzen, jgoerzen@complete.org

Synopsis

Documentation

magicOpen :: [MagicFlag] -> IO Magic Source #

Create a Magic object. You must call either magicLoadDefault or magicLoad after this.

magicLoad :: Magic -> NonEmpty OsPath -> IO () Source #

Load the specified magic databases.

magicLoadDefault :: Magic -> IO () Source #

Load the system's default magic database.