[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 generated by servant-docs).

The main changes in this release are to provide compatibility with
servant-docs-0.11.1; specifically, servant-pandoc now emits all the
information that servant-docs does with the same configuration
options.  As such, there are behavioural changes which necessitated
the major version bump.

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
http://IvanMiljenovic.wordpress.com
___
Haskell mailing list
Haskell@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell


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. Abstractly
speaking, I could imagine creating the Core AST by hand (but I’d have
to figure out how to resolve the names of the constructors), or somehow
invoking the renamer, type-checker and desugarer from within CoreM.

Surely someone else has solved this problem before. How did you do it?

Thanks,
Joachim


-- 
Joachim “nomeata” Breitner
  m...@joachim-breitner.de
  https://www.joachim-breitner.de/


signature.asc
Description: This is a digitally signed message part
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users