Last active
February 7, 2019 10:51
-
-
Save vvviiimmm/4e3587a3da302ef89ad4ce5a107c84d8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sealed trait UserInteraction[A] | |
// An effect that takes a String and retuns Unit vvvv | |
case class Tell(statement: String) extends UserInteraction[Unit] | |
// An effect that takes a String and retuns a String vvvvvv | |
case class Ask(question: String) extends UserInteraction[String] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment