Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weaken monad to applicative #206

Merged
merged 3 commits into from
Oct 18, 2024
Merged

Weaken monad to applicative #206

merged 3 commits into from
Oct 18, 2024

Conversation

mcanlas
Copy link
Contributor

@mcanlas mcanlas commented Oct 18, 2024

Monad properties not used in this particular case

@mcanlas mcanlas requested a review from geirolz as a code owner October 18, 2024 19:41
@@ -40,7 +40,7 @@

def apply[F[_]](implicit parser: XmlParser[F]): XmlParser[F] = parser

def fromSAXParser[F[_]: MonadThrow](
def fromSAXParser[F[_]: ApplicativeThrow](

Check notice

Code scanning / Codacy-scalameta-pro (reported by Codacy)

Enforces type parameters naming convention Note

Type parameter '_' does not conform with naming standard.
@@ -97,7 +97,7 @@
}
}.liftTo[F]

implicit def defaultXmlSAXParser[F[_]: MonadThrow]: XmlParser[F] =
implicit def defaultXmlSAXParser[F[_]: ApplicativeThrow]: XmlParser[F] =

Check notice

Code scanning / Codacy-scalameta-pro (reported by Codacy)

Enforces type parameters naming convention Note

Type parameter '_' does not conform with naming standard.
@@ -40,7 +40,7 @@

def apply[F[_]](implicit parser: XmlParser[F]): XmlParser[F] = parser

def fromSAXParser[F[_]: MonadThrow](
def fromSAXParser[F[_]: ApplicativeThrow](

Check notice

Code scanning / Scalastyle (reported by Codacy)

Method is longer than 50 lines. Note

Method is longer than 50 lines.
@geirolz
Copy link
Owner

geirolz commented Oct 18, 2024

Nice spot! Thanks!

@geirolz geirolz merged commit 0112aad into geirolz:main Oct 18, 2024
5 of 6 checks passed
@mcanlas mcanlas deleted the weaken-monad branch October 18, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants