| License | BSD3 |
|---|---|
| Maintainer | Klara Marntirosian <klara.mar@cs.kuleuven.be> |
| Stability | experimental |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Interfaces.MZPrinter
Description
This module provides a pretty-printer of MiniZinc models represented by the Interfaces.MZASTBase module.
Documentation
printModel :: MZModel -> Doc Source #
Prints the represented MiniZinc model. Essentially, this function applies
printItem on each element of the specified model.
layout :: [GItem a] -> String Source #
The main function that is used to pretty print the MiniZinc model. The Style used is the following.
Style {
mode = PageMode,
lineLength = 100,
ribbonsPerLine = 1.5
}
layoutModel :: MZModel -> String Source #