Comments (18)
seems to have published: https://github.com/typelevel/cats-parse/actions/runs/478850192
here is the release: https://github.com/typelevel/cats-parse/releases/tag/v0.3.0
from cats-parse.
This is where the rules are at atm @regadas https://github.com/martijnhoekstra/catsparsescalafix/
from cats-parse.
iirc there were some ideas for additional combinators floating around, but I guess those can easily go on the next one.
For this one how are we with scalafix rules? it would be good if we could have them here in the repo.
@martijnhoekstra did you start working on them? I can help out if you want.
from cats-parse.
The scalafix is ready to go. I'll give it another testrun on http4s.
I agree it's kind of weird to have them in my repo, rather than here, but also not really a big deal. Scalafix assumes master
for the main branch if you use a github:
scheme, so if we do it here, we need to use the raw path rather than a git path.
from cats-parse.
Other than that sounds good to me to release 0.3.0
from cats-parse.
Looking at the results in http4s, I still want to make two changes to the scalafix to make it catch more:
- Also rename methods that were imported rather than selected from the Parser object. in the current version P.char1(foo) gets replaced with P.char(foo), but import P.char1; char1(foo) remains unchanged. This pattern is heavily used in http4s
- Insert a pair of parentheses when translating from
Parser.rep1(foo)
to(foo).rep
if foo is some expression that is not just a name. In practice, foo is oftenx *> y
, and we want to get(x *> y).rep
, notx *> y.rep
from cats-parse.
@martijnhoekstra that sounds great to iterate on the scala fix a bit. Also happy to host in this repo, or not. I'm not that concerned about it honestly.
What do you think about #128 ?
from cats-parse.
It's probably better to release now rip the Parser/Parser0 bandaid off as soon as possible. #128 needs to experiment and iterate a bit first, and I don't think it's worth holding a release up over.
As an example for the scalafix, https://github.com/http4s/http4s/compare/dotty...martijnhoekstra:rescaffoldFix?expand=1 has two commits, one with what the scalafix did, and one with the manual cleanup pass over it.
from cats-parse.
Oh nice! Awesome to see that there are some initial rules. Having them on the repo would probably just facilitate contribution/awareness but not concerned if they are not.
I'm +1 on getting it out now.
from cats-parse.
okay, do you all think we are ready to tag 0.3.0?
from cats-parse.
maybe we should do #111 before we publish or close it. We have done so much rep/repSep related work on this version.
from cats-parse.
okay, I guess I'll tag 0.3.0 on Monday morning to give us the weekend to see if there are any issues that pop up.
from cats-parse.
Sounds good!
from cats-parse.
Glad to see there's a scalafix, and even more glad to see @martijnhoekstra running them on http4s! Some of our contributors have been nervous about the churn that's coming, so hopefully this calms some nerves. Note that series/0.22
is the branch to try it on if http4s is a testbed.
from cats-parse.
@rossabaker I have a PR ready to go with the final changes, but it felt weird to open it before 0.3.0 is actually out.
from cats-parse.
okay, tagging 0.3.0
from cats-parse.
https://github.com/typelevel/cats-parse/releases/tag/v0.3.0
from cats-parse.
here is an example of the manual changes I needed to make after scala fix:
pretty minor IMO.
from cats-parse.
Related Issues (20)
- docs can give warnings, which causes publish to fail
- orElse not working as expected HOT 3
- Either x or not y HOT 6
- Recursive parser creates infinite loop. HOT 1
- A parser string interpolator
- Backtracking with context HOT 1
- Rep same char as surrounded by HOT 5
- idea for safe repetition on Parser0
- RadixNode and stringIn are a bit slow
- Is it possible to support Scala Native? HOT 6
- alternate design for voiding
- use java.util.BitSet on scalajs
- `p1.? ~ p2` != `(p1 ~ p2) | p2` for error reporting purposes HOT 9
- Remove isScalaJs/isScalaJvm on minor version update
- identifier parser HOT 2
- flakey test: X cats.parse.ParserTest.a.flatMap(b) composes as expected parser00
- add json string parsing
- add a withString combinator
- Should `Parser` have a typeclass? HOT 2
- set up github CI to run benchmarks on release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cats-parse.