Literate Haskell

approved

by jajaperson

Integrate .lhs files into your PKM.

★ 5 stars↓ 3,878 downloadsUpdated 4y agoMIT

Obsidian Literate Haskell Plugin

Haskell provides native literate programming support, allowing haskell code within .lhs text files to act like ordinary .hs files. This seems like a good way to include runnable haskell code in Obsidian, but in order to mark a block of text as haskell code, you need to surround it with

\begin{code}
...
\end{code}

which you probably don't want literring your code blocks. This plugin provides literate haskell support by doing the following

  • Treating .lhs files like markdown
  • Hiding the \begin{code} and \end{code} in .haskell blocks in .lhs files

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.