[Haskell-cafe] [ANN] mig-2.1 minimal server library

Anton Kholomiov anton.kholomiov at gmail.com
Sun Dec 10 11:21:32 UTC 2023


I'm happy to announce a new release of the mig library. It's a minimal and
simple library to build servers. This release adds some goodies for servers
that produce HTML:

* cookies (new [input Cookie](
https://hackage.haskell.org/package/mig-0.2.1.0/docs/Mig-Core-Types-Route.html#t:Cookie)
type and [function to set](
https://hackage.haskell.org/package/mig-0.2.1.0/docs/Mig-Core-Class-Response.html#v:setCookie)
the cookies)
* [type-safe stable URLs](
https://hackage.haskell.org/package/mig-0.2.1.0/docs/Mig-Core-Class-Url.html)
from server definition
* an example [HtmlTemplate](
https://github.com/anton-k/mig/tree/main/examples/mig-example-apps/HtmlTemplate)
on how to use template engine and type-safe URLs with the library

Also it adds a stack template to create new hello-world server with stack
(on how to use it see the section on how to start [a new mig project](
https://anton-k.github.io/mig/#how-to-start-a-new-project) in the tutorial).

Links:

* [github](https://github.com/anton-k/mig)
* [tutorial](https://anton-k.github.io/mig/)
* [hackage for the server library](
https://hackage.haskell.org/package/mig-server)
* [hackage for the core library](https://hackage.haskell.org/package/mig)
* [examples](
https://github.com/anton-k/mig/tree/main/examples/mig-example-apps#mig-example-apps
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20231210/a68774d5/attachment.html>


More information about the Haskell-Cafe mailing list