agrafix / agrafix/scotty-session

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

オープン
#4 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Haskell
スター
8
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。