| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Haskell.CHs.Deps
Description
This contains a partial lexer for .chs files; enough to extract
information from {#import#} declarations.
This is lenient in that it will not reject things like {# import const Data.Char #}
Synopsis
- getImports :: ByteString -> Either String [String]
- getFileImports :: FilePath -> IO (Either String [String])
Documentation
getImports :: ByteString -> Either String [String] Source #
Given a ByteString containing C2Hs, return a list of modules it {#import#}s.