問題タブ [scotty]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
288 参照

mongodb - IOへのHaskell scottyアクション

私は Haskell を学ぼうとしてまた戻ってきました。Scotty エンドポイント内で単純な mongoDB 挿入を試みています。問題は、scotty do ステートメントで挿入関数によって返される型が受け入れられないことです。プログラムは非常に単純です。

問題は次の段階で発生します

そして、型エラーは

どんな助けやヒントも大歓迎です!