Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. @higherkind
  2. data class ParserK<A>(val f: (String) -> Option<A>): ParserKOf<A> {
  3. companion object
  4. }
  5.  
  6. @extension
  7. interface ParserKFunctor : Functor<ForParserK> {
  8. override fun <A, B> Kind<ForParserK, A>.map(f: (A) -> B): Kind<ForParserK, B> {
  9. ...
  10. }
  11. }
  12.  
  13. error: "Arrow's annotations can only be used on Kotlin classes". Not valid for error.NonExistentClass
  14.  
  15. > Task :app:kaptGenerateStubsKotlin
  16.  
  17. > Task :app:kaptKotlin FAILED
  18. e: error: Arrow's annotations can only be used on Kotlin classes. Not valid for error.NonExistentClass
  19.  
  20. FAILURE: Build failed with an exception.
  21.  
  22. * What went wrong:
  23. Execution failed for task ':app:kaptKotlin'.
  24. > Compilation error. See log for more details
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement