Skip to content

Commit

Permalink
Merge pull request #660 from gemini-hlsw/update/sbt-lucuma-lib-0.12.1
Browse files Browse the repository at this point in the history
Update sbt-lucuma-lib to 0.12.1
  • Loading branch information
mergify[bot] authored Oct 11, 2024
2 parents 75ae562 + 5a0ca2f commit 987e061
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ jobs:
timeout-minutes: 60
steps:
- name: Install sbt
if: contains(runner.os, 'macos')
run: brew install sbt
uses: sbt/setup-sbt@v1

- name: Checkout current branch (full)
uses: actions/checkout@v4
Expand Down Expand Up @@ -99,8 +98,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Install sbt
if: contains(runner.os, 'macos')
run: brew install sbt
uses: sbt/setup-sbt@v1

- name: Checkout current branch (full)
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .scalafmt-common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# this file by hand! Instead, if you wish to make changes, you should
# make a PR to sbt-lucuma.

version = "3.8.0"
version = "3.8.3"
style = default

runner.dialect = scala3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ trait Reuse[+A] {
def addReuseByFrom[C](r: Reuse[C]): Reuse[A] = addReuseBy(r.reuseBy)(using r.reusability)

def replaceReuseBy[R: Reusability: ClassTag](r: R): Reuse[A] = Reuse.by(r)(value)
def replaceReuseByFrom[C](r: Reuse[C]): Reuse[A] =
def replaceReuseByFrom[C](r: Reuse[C]): Reuse[A] =
replaceReuseBy(r.reuseBy)(using r.reusability, r.classTag)

def map[C](f: A => C): Reuse[C] = Reuse.by(reuseBy)(f(value))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ trait effect {

extension [A](self: NonEmptyRef.Set[A])
inline def setIn[F[_]: Sync](a: A): F[Unit] = self.set(a).to[F]
inline def setAsync: A => DefaultA[Unit] = setIn[DefaultA](_)
inline def setAsync: A => DefaultA[Unit] = setIn[DefaultA](_)

extension [A](self: NonEmptyRef.Simple[A])
inline def modIn[F[_]: Sync](f: A => A): F[Unit] = self.mod(f).to[F]
inline def modAsync: (A => A) => DefaultA[Unit] = modIn[DefaultA](_)
inline def modAsync: (A => A) => DefaultA[Unit] = modIn[DefaultA](_)

extension [S](self: UseSerialState[S])
inline def setStateAsync: Reusable[S => DefaultA[Unit]] =
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
addSbtPlugin("edu.gemini" % "sbt-lucuma-lib" % "0.12.0")
addSbtPlugin("edu.gemini" % "sbt-lucuma-lib" % "0.12.1")

0 comments on commit 987e061

Please sign in to comment.