
26 Aug
2020
26 Aug
'20
10:01 p.m.
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.