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
import scalaz._ | |
import Scalaz._ | |
import Free._ | |
/** "Pure" interactions with a console. */ | |
sealed trait Console[+A] | |
case class GetLine[A](k: String => A) extends Console[A] | |
case class PutLine[A](s: String, a: A) extends Console[A] | |
object Console { |
NewerOlder