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

Update scalafmt-core to 2.6.1 #355

Merged
merged 1 commit into from
Jun 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 2.6.0
version = 2.6.1

style = defaultWithAlign
maxColumn = 100
Expand Down
12 changes: 8 additions & 4 deletions fetch-debug/src/main/scala/document.scala
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,18 @@ abstract class Document {
object Document {

/**
* The empty document */
* The empty document
*/
def empty = DocNil

/**
* A break, which will either be turned into a space or a line break */
* A break, which will either be turned into a space or a line break
*/
def break = DocBreak

/**
* A document consisting of some text literal */
* A document consisting of some text literal
*/
def text(s: String): Document = DocText(s)

/**
Expand All @@ -127,6 +130,7 @@ object Document {
def group(d: Document): Document = DocGroup(d)

/**
* A nested document, which will be indented as specified. */
* A nested document, which will be indented as specified.
*/
def nest(i: Int, d: Document): Document = DocNest(i, d)
}
6 changes: 4 additions & 2 deletions fetch/src/main/scala/syntax.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ import cats.effect._
object syntax {

/**
* Implicit syntax to lift any value to the context of Fetch via pure */
* Implicit syntax to lift any value to the context of Fetch via pure
*/
implicit class FetchIdSyntax[A](val a: A) extends AnyVal {

def fetch[F[_]: Concurrent]: Fetch[F, A] =
Fetch.pure[F, A](a)
}

/**
* Implicit syntax to lift exception to Fetch errors */
* Implicit syntax to lift exception to Fetch errors
*/
implicit class FetchExceptionSyntax[B](val a: Throwable) extends AnyVal {

def fetch[F[_]: Concurrent]: Fetch[F, B] =
Expand Down