Skip to content

Instantly share code, notes, and snippets.

@Jacoby6000
Last active August 29, 2015 14:26
Show Gist options
  • Save Jacoby6000/6c81d7a66809035af57b to your computer and use it in GitHub Desktop.
Save Jacoby6000/6c81d7a66809035af57b to your computer and use it in GitHub Desktop.
[info] Compiling 17 Scala sources to /media/sf_windows/Users/Jacob/Projects/virtual-receptionist-server/target/scala-2.11/classes...
[error] /media/sf_windows/Users/Jacob/Projects/virtual-receptionist-server/src/main/scala/com/jbarber/receptionist/web/RootWebService.scala:20: type mismatch;
[error] found : Object
[error] required: scalaz.concurrent.Task[org.http4s.Response]
[error] .flatMap(_.getOrElse(BadRequest("Failure for some reason. i dunno.") : Task[Response]))
val service = HttpService {
case req @ _ -> Root / "visitors" =>
visitorWebService
.routes(req)
.map(_.getOrElse(BadRequest("Failure for some reason. i dunno.")))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment