Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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.
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.1-GiuJt2hKWN6LsPFPAmcFii" '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.
Instances
FromJSON ConfigHsMd Source # | |
Defined in Converter parseJSON :: Value -> Parser ConfigHsMd # parseJSONList :: Value -> Parser [ConfigHsMd] # | |
Generic ConfigHsMd Source # | |
Defined in Converter type Rep ConfigHsMd :: Type -> Type # from :: ConfigHsMd -> Rep ConfigHsMd x # to :: Rep ConfigHsMd x -> ConfigHsMd # | |
Default ConfigHsMd Source # | |
Defined in Converter def :: ConfigHsMd # | |
type Rep ConfigHsMd Source # | |
Defined in Converter type Rep ConfigHsMd = D1 ('MetaData "ConfigHsMd" "Converter" "lima-0.1.0.1-GiuJt2hKWN6LsPFPAmcFii" 'True) (C1 ('MetaCons "ConfigHs2Md" 'PrefixI 'True) (S1 ('MetaSel ('Just "specialComments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]))) |