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
// ------------------------------------------------------------------------------------------------- | |
// Framework | |
// ------------------------------------------------------------------------------------------------- | |
/** Simple typeclass for turning Strings into things */ | |
trait Mapper[A] extends (String => A) | |
/** define all the Mapper typeclass instances and generators we need */ | |
object Mapper { | |
implicit val StringMapper = new Mapper[String] { | |
def apply(s: String) = s |