-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72f0009
commit f15c14a
Showing
15 changed files
with
21 additions
and
49 deletions.
There are no files selected for viewing
15 changes: 0 additions & 15 deletions
15
...cker/jvm/src/main/scala/pl/writeonly/linkchecker/scala/common/states/api/io/package.scala
This file was deleted.
Oops, something went wrong.
5 changes: 2 additions & 3 deletions
5
linkchecker/jvm/src/main/scala/pl/writeonly/linkchecker/scala/impl/io/io0/IOApp.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
package pl.writeonly.linkchecker.scala.impl.io.io0 | ||
|
||
import pl.writeonly.linkchecker.scala.common.states.api.io.PureStateIO | ||
import pl.writeonly.linkchecker.scala.common.states.api.monad.ValidationAPIState | ||
import pl.writeonly.linkchecker.scala.common.url.Domain | ||
import pl.writeonly.linkchecker.scala.impl.Apps.ValidationAPIStateEffect | ||
import scalaz.ImmutableArray | ||
import scalaz.Scalaz._ | ||
import scalaz.effect._ | ||
|
||
object IOApp extends SafeApp with ValidationAPIStateEffect[PureStateIO] { | ||
object IOApp extends SafeApp with ValidationAPIStateEffect[IO[ValidationAPIState]] { | ||
|
||
private val domain = "https://www.writeonly.pl" | ||
|
||
override def run(args: ImmutableArray[String]): IO[Unit] = effect().map(_.showResult()) | ||
|
||
def apply(): ValidationAPIState = effect().unsafePerformIO() | ||
|
||
def effect(): PureStateIO = IOState.fromDomain(new Domain(domain)) |> IOState.run | ||
def effect(): IO[ValidationAPIState] = IOState.fromDomain(new Domain(domain)) |> IOState.run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters