magic-1.1: Interface to C file/magic library
CopyrightCopyright (C) 2005 John Goerzen
LicenseBSD
MaintainerJohn Goerzen,
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

Magic.Init

Description

Initialization and shutdown for magic programs

Written by John Goerzen, [email protected]

Synopsis

Documentation

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

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

magicLoad :: Magic -> String -> IO () Source #

Load the specified magic database(s). The given string may contain multiple colon-separated pathnames.

magicLoadDefault :: Magic -> IO () Source #

Load the system's default magic database.