We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6dc75e commit 8e5b06aCopy full SHA for 8e5b06a
swingio/src/main/scala/net/bulbyvr/swing/io/wrapper/FileChooser.scala
@@ -7,7 +7,7 @@ import java.io.File
7
import cats.effect.syntax.all.*
8
import cats.syntax.all.*
9
object FileChooser {
10
- private class PartiallyAppliedApply[F[_]: Async] {
+ private[io] class PartiallyAppliedApply[F[_]: Async] {
11
private def getFC: F[JFileChooser] =
12
Async[F].delay { JFileChooser() }.evalOn(AwtEventDispatchEC)
13
private def showDialog(show: JFileChooser => Int): F[(Int, JFileChooser)] =
@@ -28,4 +28,5 @@ object FileChooser {
28
def open: F[Option[File]] = showOpenDialog(_.showOpenDialog(null))
29
30
}
31
+ def apply[F[_]: Async]: PartiallyAppliedApply[F] = new PartiallyAppliedApply[F]
32
0 commit comments