Should use --repl-options for cabal repl in haskell-interactive-mode

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

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

評価

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

調査の方向性

まず、haskell-interactive-mode 内の --ghc-option=-ferror-spans 引数を見つけ、cabal repl の呼び出しをどのように構築しているかを調べます。置き換えで --repl-options が使用され、結果の呼び出しが v2 repl で確実にオプションを GHCi に渡すことを確認します。

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

説明

Currently GHCi is passed --ghc-option=-ferror-spans for the additional arguments for the cabal repl invocation, but since 3.4 the v2 repl (default) does not have --ghc-option= work reliably, e.g. in https://cabal.readthedocs.io/en/3.4/cabal-commands.html#cabal-v2-repl you can see:

To avoid ghci specific flags from triggering unneeded global rebuilds these flags are now stripped from the internal configuration. As a result --ghc-options will no longer (reliably) work to pass flags to ghci (or other repls). Instead, you should use the new --repl-options flag to specify these options to the invoked repl.

Shouldn't the option be changed to --repl-options in haskell-interactive-mode?

主要言語
Emacs Lisp
スター
1.4k
フォーク
357
平均マージ
7時間 50分
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

haskell/haskell-mode のほかの issue

haskell/haskell-mode の issue をすべて見る

似ている issue

CLI の issue をもっと見る

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

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