Maintainer | John Goerzen, |
---|
Maintainer : jgoerzen@complete.org Stability : provisional Portability: portable
Initialization and shutdown for magic programs
Written by John Goerzen, jgoerzen@complete.org
- magicFile :: Magic -> FilePath -> IO String
- magicStdin :: Magic -> IO String
- magicString :: Magic -> String -> IO String
- magicCString :: Magic -> CStringLen -> IO String
- magicSetFlags :: Magic -> [MagicFlag] -> IO ()
- magicCompile :: Magic -> Maybe String -> IO ()
Guessing the type
magicStdin :: Magic -> IO StringSource
Calls the Magic system on stdin.
magicString :: Magic -> String -> IO StringSource
Calls the Magic system to process the given String. Please note: it is not evaluated lazily.
magicCString :: Magic -> CStringLen -> IO StringSource
Lower-level function used to call the Magic system to process a C string.