[Haskell] ANNOUNCE: servant-pandoc 0.5.0.0

2018-01-16 Thread Ivan Lazar Miljenovic
I'm pleased to announce the latest release of the servant-pandoc library: https://hackage.haskell.org/package/servant-pandoc-0.5.0.0 servant-pandoc allows you to take the documentation created with servant-docs and use Pandoc to convert it into whichever format you want (rather than the Markdown

Maybe String -> CoreExpr in a GHC plugin

2018-01-16 Thread Joachim Breitner
Hi, in a GHC plugin, I want to synthesize simple data structures, and insert them into the code. What is the most idiomatic way of writing a function, say, foo :: Maybe String -> CoreExpr or foo :: Maybe String -> CoreM CoreExpr so that the resulting CoreExpr describes the input.