agrafix / agrafix/scotty-session

Build failure with GHC 8.10.4 and 8.8.4: "Could not deduce (MonadIO (ScottyT e m))"

Aperta
#4 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Haskell
Stelle
8
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi, I have a build failure with GHC 8.10.4 and 8.8.4:

```
Web/Scotty/Session.hs:46:19: error:
• Could not deduce (MonadIO (ScottyT e m))
arising from a use of ‘liftIO’
from the context: MonadIO m
bound by the type signature for:
createSessionManager :: forall (m :: * -> *) e a.
MonadIO m =>
ScottyT e m (ScottySM a)
at Web/Scotty/Session.hs:44:1-61
• In a stmt of a 'do' block:
storage <- liftIO $ atomically $ newTVar HM.empty
In the expression:
do storage <- liftIO $ atomically $ newTVar HM.empty
liftIO $ forkIO $ maintainSessions storage
return $ ScottySM storage
In an equation for ‘createSessionManager’:
createSessionManager
= do storage <- liftIO $ atomically $ newTVar HM.empty
liftIO $ forkIO $ maintainSessions storage
return $ ScottySM storage
|
46 | do storage <- liftIO $ atomically $ newTVar HM.empty
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.