You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a type to represent a range of lexing positions from a file, which I called Loc.t. It's here.
I use it as dependency to decorate AST nodes built by parsers, enabling located error messages during file processing (compilers, interpreters, linters, refactor tools, etc.).
I am considering submitting it to the opam-repository, but I have some reservations.
Firstly I am unsure how to package it for publication. Would there be push-back about grabbing the global "loc" name on opam?
Secondly, this is very similar to Dune's Stdune.Loc module (and actually uses stdune under the hood). Perhaps it would make more sense to work on extracting the Dune one as a foundational package (such as pp, dyn, and ordering), rather than maintaining this one separately.
My motivation is that I have other libraries that I'd like to eventually publish to opam that depend on it. Some examples below:
I am using a type to represent a range of lexing positions from a file, which I called
Loc.t
. It's here.I use it as dependency to decorate AST nodes built by parsers, enabling located error messages during file processing (compilers, interpreters, linters, refactor tools, etc.).
I am considering submitting it to the opam-repository, but I have some reservations.
Stdune.Loc
module (and actually usesstdune
under the hood). Perhaps it would make more sense to work on extracting the Dune one as a foundational package (such aspp
,dyn
, andordering
), rather than maintaining this one separately.My motivation is that I have other libraries that I'd like to eventually publish to opam that depend on it. Some examples below:
Similar libraries or modules:
Dune's Loc.t
Parsexp's ranges
Ppxlib's Location.t
Compilerlibs's loc
I would appreciate any thoughts or feedback on this matter. Thank you!
The text was updated successfully, but these errors were encountered: