Upcoming dev changes - Neuron

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Sridhar Ratnakumar

I mainly plan to work on these two things next:

  • Convert all of Lucid rendering to use Reflex-DOM.
  • Replace manual query rendering using Pandoc AST with Reflex-DOM (see Neuron.Zettelkasten.Query.View module comment)

Unifying all these different rendering points should make things much simpler.


This is great. Is there any reason why prefer reflex over lucid?

And do you have any consideration if someone want to use third party library if we use reflex-dom? Like current pandoc style doesn't have syntax highlighting for Nix language, so I am planning to use another syntax highlighting library in javascript.

Sridhar Ratnakumar

Main reason: GHCJS support. Why? An awesome project is going to be released this year.

Sridhar Ratnakumar

@Rizary Well if you contribute Nix language support to skylighting https://github.com/jgm/skylighting/tree/master/skylighting-core/xml - that might be better.

A Haskell syntax highlighting library with tokenizers derived from KDE syntax highlighting descriptions - jgm/skylighting

TIL about skylighting. So I assume pandoc use this library?

Sridhar Ratnakumar

actual place where neuron uses it to highlight code is here: https://github.com/srid/reflex-dom-pandoc/blob/master/src/Reflex/Dom/Pandoc/SyntaxHighlighting.hs

Render Pandoc documents in reflex-dom. Contribute to srid/reflex-dom-pandoc development by creating an account on GitHub.