I wrote a parser for a small part of the mermaid diagram language. This came up while working in a project that uses mermaid to flesh out a design for some process. Since the devs would already write down mermaid specifications for visualising the diagram of these processes, I figured it would be useful if I could leverage the existing specification programatically, in Haskell.
In general, mermaid is a widely used diagram specification language with pretty good rendering tools, and I think being able to further use these specifications from Haskell can be powerful…!
More specifically, I implemented the parser for the entity-relationship diagram subset of mermaid, as it was the only I needed for my project.
Even though I started the ball rolling with the ER parser, I don’t intend to pursue a complete implementation of mermaid parsing in Haskell. However, this is where anyone interested in another part of mermaid is more than welcome to come in and contribute. This is a great newcomer friendly project, and I’d be happy to advise you here.
I haven’t uploaded to hackage, but I could (as v0.1) if anyone thinks that would be useful. LMK.