Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data OutputFormat
- guessOutputFormat :: FilePath -> OutputFormat
- formatExtensions :: [(String, OutputFormat)]
- formatExtension :: OutputFormat -> String
- formats2D :: [OutputFormat]
- formatIs2D :: OutputFormat -> Bool
- def2D :: OutputFormat
- formats3D :: [OutputFormat]
- formatIs3D :: OutputFormat -> Bool
- def3D :: OutputFormat
Documentation
data OutputFormat Source #
A type serving to enumerate our output formats.
Instances
Read OutputFormat Source # | A Read instance for our output format. Used by |
Defined in Graphics.Implicit.Export.OutputFormat readsPrec :: Int -> ReadS OutputFormat # readList :: ReadS [OutputFormat] # | |
Show OutputFormat Source # | |
Defined in Graphics.Implicit.Export.OutputFormat showsPrec :: Int -> OutputFormat -> ShowS # show :: OutputFormat -> String # showList :: [OutputFormat] -> ShowS # | |
Default OutputFormat Source # | |
Defined in Graphics.Implicit.Export.OutputFormat def :: OutputFormat # | |
Eq OutputFormat Source # | |
Defined in Graphics.Implicit.Export.OutputFormat (==) :: OutputFormat -> OutputFormat -> Bool # (/=) :: OutputFormat -> OutputFormat -> Bool # |
guessOutputFormat :: FilePath -> OutputFormat Source #
Lookup an output format for a given output file. Throw an error if one cannot be found.
formatExtensions :: [(String, OutputFormat)] Source #
A list mapping file extensions to output formats.
formatExtension :: OutputFormat -> String Source #
Get filename extension for OutputFormat
formats2D :: [OutputFormat] Source #
All supported 2D formats
formatIs2D :: OutputFormat -> Bool Source #
True for 2D capable OutputFormat
s
def2D :: OutputFormat Source #
Default 2D output format
formats3D :: [OutputFormat] Source #
All supported 3D formats
formatIs3D :: OutputFormat -> Bool Source #
True for 3D capable OutputFormat
s
def3D :: OutputFormat Source #
Default 3D output format