Reconsider internal representation of `FsPath`s

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
haskell

調査の方向性

まず、現在の FsPath の [Text] としての表現、およびその結合関数と変換関数を調べます。妥当な相対パスに必要な不変条件を含め、OsPath、FilePath、Vector の各表現の可能性を比較します。根拠のある内部表現を選択して実装し、影響を受ける FsPath 操作を簡素化できれば完了です。

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

説明

The current FsPath representation as [Text] is not very ergonomic. We should reconsider whether we want to pick a different internal representation, maybe something like an OsPath or Vector.

If we pick OsPath (or even FilePath) as the internal representation, with sufficient invariants to ensure that they form sensible relative paths, then we could probably simplify the implementation of a number of FsPath combinator and conversion functions. For example, (</>) on FsPaths could be a simple wrapper around (</>) on OsPaths/FilePaths. FilePaths would, however, probably not be more performant than the current [Text] representation.

主要言語
Haskell
スター
2
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

IntersectMBO/fs-sim のほかの issue

IntersectMBO/fs-sim の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

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

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