Safe Haskell | Safe-Inferred |
---|
A simple module for parsing CNF files in DIMACS format.
- parseByteString :: SourceName -> ByteString -> Either ParseError CNF
- parseFile :: FilePath -> IO (Either ParseError CNF)
- data CNF = CNF {}
- type Clause = UArray Int Int
Documentation
parseByteString :: SourceName -> ByteString -> Either ParseError CNFSource
Parse a byte string containing DIMACS CNF data. The source name is only | used in error messages and may be the empty string.