[Haskell-cafe] writing wizards in Yesod

Henning Thielemann lemming at henning-thielemann.de
Wed Aug 26 22:01:00 UTC 2020


On Wed, 26 Aug 2020, Olaf Klinke wrote:

> The Yesod book [1,2] gives examples where state is encoded in an IORef
> inside the foundational type, like so: 
>
>   data AppState = ...
>   data App = App {appState :: IORef AppState}

IORef sounds mighty wrong, because a web server is highly concurrent.


More information about the Haskell-Cafe mailing list