lima-0.1.0.5: (Haskell or Literate Haskell) <-> Markdown converter
Safe HaskellSafe-Inferred
LanguageHaskell2010

Converter

Description

Functions to convert Haskell to Markdown and between Literate Haskell (.lhs) and Markdown.

Synopsis

Documentation

hsToMd :: ConfigHsMd -> String -> String Source #

Convert Haskell to Markdown.

Multi-line comments are copied as text blocks and Haskell code is copied as Haskell snippets.

mdToHs :: ConfigHsMd -> String -> String Source #

Convert Markdown to Haskell.

Multi-line comments are copied as text blocks and Haskell code is copied as Haskell snippets.

lhsToMd :: String -> String Source #

Convert Literate Haskell to Markdown.

Convert LHS birdtick style to Markdown, replacing the code marked by birdticks with ```haskell ... ```.

mdToLhs :: String -> String Source #

Convert Markdown file to Literate Haskell.

Replace code marked with ```haskell ...``` with birdticks (>) and code marked with ``` ... ``` with reverse birdticks (<).

newtype Config Source #

App config.

Constructors

Config 

Instances

Instances details
FromJSON Config Source # 
Instance details

Defined in Converter

Generic Config Source # 
Instance details

Defined in Converter

Associated Types

type Rep Config :: Type -> Type #

Methods

from :: Config -> Rep Config x #

to :: Rep Config x -> Config #

Default Config Source # 
Instance details

Defined in Converter

Methods

def :: Config #

type Rep Config Source # 
Instance details

Defined in Converter

type Rep Config = D1 ('MetaData "Config" "Converter" "lima-0.1.0.5-FjG3cHJiYg0Ho6XPjMm4CH" 'True) (C1 ('MetaCons "Config" 'PrefixI 'True) (S1 ('MetaSel ('Just "configHsMd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ConfigHsMd))))

newtype ConfigHsMd Source #

Config for Haskell to Markdown converter.

Constructors

ConfigHs2Md 

Fields

Instances

Instances details
FromJSON ConfigHsMd Source # 
Instance details

Defined in Converter

Generic ConfigHsMd Source # 
Instance details

Defined in Converter

Associated Types

type Rep ConfigHsMd :: Type -> Type #

Default ConfigHsMd Source # 
Instance details

Defined in Converter

Methods

def :: ConfigHsMd #

type Rep ConfigHsMd Source # 
Instance details

Defined in Converter

type Rep ConfigHsMd = D1 ('MetaData "ConfigHsMd" "Converter" "lima-0.1.0.5-FjG3cHJiYg0Ho6XPjMm4CH" 'True) (C1 ('MetaCons "ConfigHs2Md" 'PrefixI 'True) (S1 ('MetaSel ('Just "specialComments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String])))