agrafix / agrafix/scotty-session

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

Offen
#4 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Haskell
Sterne
8
Forks
4
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.