object Printer

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Printer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class Contramap[Err, Err2, Out, Value2, Value](printer: Printer[Err, Out, Value], from: (Value2) => Value) extends Printer[Err2, Out, Value2] with Product with Serializable
  2. final case class ContramapEither[Err, Err2, Out, Value2, Value](printer: Printer[Err, Out, Value], from: (Value2) => Either[Err2, Value]) extends Printer[Err2, Out, Value2] with Product with Serializable
  3. final case class Fail[+Err](failure: Err) extends Printer[Err, Nothing, Any] with Product with Serializable
  4. final case class Failed[+Err](failure: ParserError[Err]) extends Printer[Err, Nothing, Any] with Product with Serializable
  5. final case class FlatMapValue[Err, Out, Value](f: (Value) => Printer[Err, Out, Any]) extends Printer[Err, Out, Value] with Product with Serializable
  6. final case class Ignore[Err, Out, Value, Value2](printer: Printer[Err, Out, Value], matches: Value2, from: Value) extends Printer[Err, Out, Value2] with Product with Serializable
  7. final case class Lazy[Err, Out, Value](inner: () => Printer[Err, Out, Value]) extends Printer[Err, Out, Value] with Product with Serializable
  8. final case class MapError[Err, Err2, Out, Value](printer: Printer[Err, Out, Value], mapPrinterErr: (Err) => Err2) extends Printer[Err2, Out, Value] with Product with Serializable
  9. final case class Optional[Err, Out, Value](printer: Printer[Err, Out, Value]) extends Printer[Err, Out, Option[Value]] with Product with Serializable
  10. final case class OrElse[Err, Err2, Out, Out2, Value2, Value](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2]) extends Printer[Err2, Out2, Value2] with Product with Serializable
  11. final case class OrElseEither[Err, Err2, Out, Out2, Value2, Value](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2]) extends Printer[Err2, Out2, Either[Value, Value2]] with Product with Serializable
  12. final case class ParseRegex[Err](regex: Regex, onFailure: Option[Err]) extends Printer[Err, Char, Chunk[Char]] with Product with Serializable
  13. final case class ParseRegexLastChar[Err](regex: Regex, onFailure: Option[Err]) extends Printer[Err, Char, Char] with Product with Serializable
  14. final case class Passthrough[-Value, +Result]() extends Printer[Nothing, Result, Value] with Product with Serializable
  15. final case class ProvideValue[Err, Out, Value](printer: Printer[Err, Out, Value], value: Value) extends Printer[Err, Out, Any] with Product with Serializable
  16. final case class Repeat[Err, Out, Value](printer: Printer[Err, Out, Value], min: Int, max: Option[Int]) extends Printer[Err, Out, Chunk[Value]] with Product with Serializable
  17. final case class SkipRegex(regex: Regex, printAs: Chunk[Char]) extends Printer[Nothing, Char, Unit] with Product with Serializable
  18. final case class Succeed(value: Any) extends Printer[Nothing, Nothing, Any] with Product with Serializable
  19. final case class Zip[Err, Err2, Out, Out2, Value2, Value, ZippedValue](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2], unzipValue: (ZippedValue) => (Value, Value2)) extends Printer[Err2, Out2, ZippedValue] with Product with Serializable
  20. final case class ZipLeft[Err, Err2, Out, Out2, Value2, Value](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2]) extends Printer[Err2, Out2, Value] with Product with Serializable
  21. final case class ZipRight[Err, Err2, Out, Out2, Value2, Value](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2]) extends Printer[Err2, Out2, Value2] with Product with Serializable

Value Members

  1. val alphaNumeric: Printer[String, Char, Char]

    Prints a single alpha-numeric character

  2. def any: Printer[Nothing, Nothing, Any]

    Printer that just emits its input value

  3. val anyChar: Printer[Nothing, Char, Char]

    Printer that prints a single character provided as input.

  4. val anyString: Printer[Nothing, Char, String]

    Printer that just prints the input string

  5. def apply[Out](value: => Out)(implicit ev: =!=[Out, Char]): Printer[String, Out, Unit]

    Printer that emits the given value

  6. def byValue[Err, Out, Value](f: (Value) => Printer[Err, Out, Any]): Printer[Err, Out, Value]

    Printer determined by a function on the input value

  7. def char(value: Char): Printer[String, Char, Unit]

    Printer that prints a given character and results in unit

  8. def charIn(chars: Char*): Printer[String, Char, Char]

    Printer that prints a single character if it matches any of the given 'chars'

  9. def charNotIn(chars: Char*): Printer[String, Char, Char]

    Printer that prints a single character except if it matches any of the given 'chars'

  10. val digit: Printer[String, Char, Char]

    Prints a single digit

  11. def exactly[Err, Out](value: Out, failure: Err)(implicit ev: =!=[Out, Char]): Printer[Err, Out, Out]

    Printer that emits the input if it is equals to 'value'.

    Printer that emits the input if it is equals to 'value'. Otherwise fails with 'failure'

  12. def exactly[Out](value: Out)(implicit ev: =!=[Out, Char]): Printer[String, Out, Out]

    Printer that emits the input if it is equals to 'value'.

    Printer that emits the input if it is equals to 'value'. Otherwise fails

  13. def except[Err, Out](value: Out, failure: Err)(implicit ev: =!=[Out, Char]): Printer[Err, Out, Out]

    Printer that emits the input except if it is equals to 'value', in which case it fails with 'failure'

  14. def except[Out](value: Out)(implicit ev: =!=[Out, Char]): Printer[String, Out, Out]

    Printer that emits the input except if it is equals to 'value', in which case it fails

  15. def fail[Err](failure: Err): Printer[Err, Nothing, Any]

    Printer that does not print anything and fails with 'failure'

  16. val letter: Printer[String, Char, Char]

    Prints a single letter

  17. def notChar[Err](value: Char, failure: Err): Printer[Err, Char, Char]

    Printer that prints the input character if it does not equal to 'value', otherwise fails with 'failure'

  18. def notChar(value: Char): Printer[String, Char, Char]

    Printer that prints the input character if it does not equal to 'value', otherwise fails

  19. def print[Out](value: Out): Printer[Nothing, Out, Any]

    Printer emitting a specific value

  20. def printString(value: String): Printer[Nothing, Char, Any]

    Printer emitting a specific string to a char output

  21. def regex[Err](regex: Regex, failure: Err): Printer[Err, Char, Chunk[Char]]

    Printer that prints a series of characters provided as input, if it matches the given regex.

    Printer that prints a series of characters provided as input, if it matches the given regex. Otherwise fails with 'failure'

  22. def regexChar[Err](regex: Regex, failure: Err): Printer[Err, Char, Char]

    Printer that prints a single character if matches the given 'regex', otherwise fails with 'failure'

  23. def regexDiscard(regex: Regex, value: Chunk[Char]): Printer[Nothing, Char, Unit]

    Printer that prints the given chunk of characters in 'value'

  24. def string[Result](str: String, value: Result): Printer[Nothing, Char, Result]

    Prints a specific string 'str' and results in 'value'

  25. val unit: Printer[Nothing, Nothing, Any]
  26. def unsafeRegex[Err](regex: Regex): Printer[Err, Char, Chunk[Char]]

    Printer that prints a series of characters provided as input, if it matches the given regex.

    Printer that prints a series of characters provided as input, if it matches the given regex. The regex should never fail.

  27. def unsafeRegexChar(regex: Regex): Printer[Nothing, Char, Char]

    Printer that prints a single character if matches the given 'regex'.

    Printer that prints a single character if matches the given 'regex'. The regex should never fail.

  28. val whitespace: Printer[String, Char, Char]

    Prints a single whitespace character