Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

createTransport in ch1 is broken with recent network-transport-tcp-0.6.0

オープン
#447 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
haskell

調査の方向性

ch1 の例から始め、17 行目の createTransport 呼び出しを network-transport-tcp および distributed-process のバージョンと併せて調査します。最近の依存関係でコンパイル失敗を再現し、その後、例が正常にコンパイルできるように例またはバージョンに関する案内を更新します。

索引モデルが issue の本文から書いたものです。

説明

website

Versions of the network-transport-tcp (and distributed-process) are needed to be specified.

For now, with recent version, example does not compile:

    • Couldn't match expected type ‘IO
                                      (Either
                                         a0 network-transport-0.5.2:Network.Transport.Transport)’
                  with actual type ‘Network.Transport.TCP.TCPParameters
                                    -> IO
                                         (Either
                                            GHC.IO.Exception.IOException
                                            network-transport-0.5.2:Network.Transport.Transport)’
    • Probable cause: ‘createTransport’ is applied to too few arguments
      In a stmt of a 'do' block:
        Right t <- createTransport "127.0.0.1" "10501" defaultTCPParameters
      In the expression:
        do Right t <- createTransport
                        "127.0.0.1" "10501" defaultTCPParameters
           node <- newLocalNode t initRemoteTable
           runProcess node
             $ do echoPid <- spawnLocal $ forever $ do ...
                  say "send some messages!"
                  ....
      In an equation for ‘main’:
          main
            = do Right t <- createTransport
                              "127.0.0.1" "10501" defaultTCPParameters
                 node <- newLocalNode t initRemoteTable
                 runProcess node
                   $ do echoPid <- spawnLocal $ forever $ ...
                        ....
   |
17 |   Right t <- createTransport "127.0.0.1" "10501" defaultTCPParameters
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
主要言語
Haskell
スター
753
フォーク
101
平均マージ
1日 3時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

haskell-distributed/distributed-process のほかの issue

haskell-distributed/distributed-process の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

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

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