patterns

parsley.errors.patterns$
object patterns

This module contains combinators that help facilitate the error message generational patterns Verified Errors and Preventative Errors.

In particular, exposes an extension class VerifiedErrors that facilitates creating verified errors in many different formats.

Attributes

Since

4.2.0

Source
patterns.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
patterns.type

Members list

Type members

Classlikes

final implicit class PreventativeErrors[P, A](p: P)(implicit con: P => Parsley[A])

Attributes

Source
patterns.scala
Supertypes
class Object
trait Matchable
class Any
final implicit class VerifiedErrors[P, A](p: P)(implicit con: P => Parsley[A])

This class exposes combinators related to the Verified Errors parser design pattern.

This class exposes combinators related to the Verified Errors parser design pattern.

This extension class operates on values that are convertible to parsers. The combinators it enables allow for the parsing of known illegal values, providing richer error messages in case they succeed.

Type parameters

P

the type of base value that this class is used on (the conversion to Parsley) is summoned automatically.

Value parameters

con

a conversion that allows values convertible to parsers to be used.

p

the value that this class is enabling methods on.

Attributes

Constructor

This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.

Since

4.2.0

Source
patterns.scala
Supertypes
class Object
trait Matchable
class Any

Implicits

Implicits

final implicit def PreventativeErrors[P, A](p: P)(implicit con: P => Parsley[A]): PreventativeErrors[P, A]

Attributes

Source
patterns.scala
final implicit def VerifiedErrors[P, A](p: P)(implicit con: P => Parsley[A]): VerifiedErrors[P, A]

This class exposes combinators related to the Verified Errors parser design pattern.

This class exposes combinators related to the Verified Errors parser design pattern.

This extension class operates on values that are convertible to parsers. The combinators it enables allow for the parsing of known illegal values, providing richer error messages in case they succeed.

Type parameters

P

the type of base value that this class is used on (the conversion to Parsley) is summoned automatically.

Value parameters

con

a conversion that allows values convertible to parsers to be used.

p

the value that this class is enabling methods on.

Attributes

Constructor

This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.

Since

4.2.0

Source
patterns.scala