literatex-0.3.0.0: transform literate source code to Markdown
CopyrightCopyright (c) 2021-2023 Travis Cardwell
LicenseMIT
Safe HaskellSafe-Inferred
LanguageHaskell2010

LiterateX.Types

Description

The type modules are generally imported qualified, so the types are re-exported by this module for convenience.

Synopsis

Documentation

data CodeLanguage Source #

Source code language

This string is used for syntax highlighting of source code.

When using Pandoc Markdown, run the following command to see a list of supported languages:

$ pandoc --list-highlight-languages

When using GitHub Flavored Markdown, check the following file for supported languages:

https://github.com/github/linguist/blob/master/lib/linguist/languages.yml

Since: 0.0.1.0

data SourceFormat Source #

Source format

This sum type defines the supported source formats.

Since: 0.0.1.0

Instances

Instances details
Bounded SourceFormat Source # 
Instance details

Defined in LiterateX.Types.SourceFormat

Enum SourceFormat Source # 
Instance details

Defined in LiterateX.Types.SourceFormat

Show SourceFormat Source # 
Instance details

Defined in LiterateX.Types.SourceFormat

Eq SourceFormat Source # 
Instance details

Defined in LiterateX.Types.SourceFormat

Ord SourceFormat Source # 
Instance details

Defined in LiterateX.Types.SourceFormat

Parse SourceFormat Source # 
Instance details

Defined in LiterateX.Types.SourceFormat

Methods

parse :: (Textual t, Textual e) => t -> Either e SourceFormat #

Render SourceFormat Source # 
Instance details

Defined in LiterateX.Types.SourceFormat

Methods

render :: Textual t => SourceFormat -> t #

data SourceLine Source #

Parsed source line

Since: 0.0.1.0

Instances

Instances details
Show SourceLine Source # 
Instance details

Defined in LiterateX.Types.SourceLine

data TargetFormat Source #

Target format

This sum type defines the supported target formats.

Documentation:

Since: 0.2.1.0

Instances

Instances details
Bounded TargetFormat Source # 
Instance details

Defined in LiterateX.Types.TargetFormat

Enum TargetFormat Source # 
Instance details

Defined in LiterateX.Types.TargetFormat

Show TargetFormat Source # 
Instance details

Defined in LiterateX.Types.TargetFormat

Eq TargetFormat Source # 
Instance details

Defined in LiterateX.Types.TargetFormat

Ord TargetFormat Source # 
Instance details

Defined in LiterateX.Types.TargetFormat

Parse TargetFormat Source # 
Instance details

Defined in LiterateX.Types.TargetFormat

Methods

parse :: (Textual t, Textual e) => t -> Either e TargetFormat #

Render TargetFormat Source # 
Instance details

Defined in LiterateX.Types.TargetFormat

Methods

render :: Textual t => TargetFormat -> t #