| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Converter
Description
Functions to convert Haskell to Markdown and between Literate Haskell (.lhs) and Markdown.
Synopsis
- hsToMd :: ConfigHsMd -> String -> String
- mdToHs :: ConfigHsMd -> String -> String
- lhsToMd :: String -> String
- mdToLhs :: String -> String
- newtype Config = Config {}
- newtype ConfigHsMd = ConfigHs2Md {
- specialComments :: [String]
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 (<).
App config.
Constructors
| Config | |
Fields | |
Instances
| FromJSON Config Source # | |
| Generic Config Source # | |
| Default Config Source # | |
| type Rep Config Source # | |
Defined in Converter type Rep Config = D1 ('MetaData "Config" "Converter" "lima-0.1.0.6-1Vj6FAgObIZG2rxDfqKT41" '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
| FromJSON ConfigHsMd Source # | |
Defined in Converter | |
| Generic ConfigHsMd Source # | |
| Default ConfigHsMd Source # | |
Defined in Converter Methods def :: ConfigHsMd # | |
| type Rep ConfigHsMd Source # | |
Defined in Converter type Rep ConfigHsMd = D1 ('MetaData "ConfigHsMd" "Converter" "lima-0.1.0.6-1Vj6FAgObIZG2rxDfqKT41" 'True) (C1 ('MetaCons "ConfigHs2Md" 'PrefixI 'True) (S1 ('MetaSel ('Just "specialComments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]))) | |