Skip to content

Refactor file uris to make possible skip normalization #212

@jneira

Description

@jneira
  • After Normalize file paths before converting to Uri's #205 normalization could happen up to 2 times: in filePathToUri and toNormalizeUri, the last one to ensure that file NormalizedUri's from other sources (like Aeson) are always normalized (and fix a bug in hie)
  • Moreover, if client code already has ensured that filepaths are normalized it suffer the penalty of two additional normalizations:
  • To avoid this, filePathToUri should remove the normalization, moving it to normalizeUri and maybe to another function filePathToNormalizedUri :: FilePath -> NormalizedUri

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions