There are three types of code sections:
- standalone
- ghci shared
- doctest
Instead of using a markdown tag we can identify these automatically. That will help in using the same haskell markdown tag so that it works with github language highlighting.
The different types of codes can be identified as follows:
- if the first line starts with
>>> then it is doctest
- if the first line is a comment
{- standalone -} then it is standalone Haskell ghci code
- otherwise it is ghci shared code
There are three types of code sections:
Instead of using a markdown tag we can identify these automatically. That will help in using the same
haskellmarkdown tag so that it works with github language highlighting.The different types of codes can be identified as follows:
>>>then it is doctest{- standalone -}then it is standalone Haskell ghci code