Open anne-decusatis opened 5 years ago
Without investigating, given that this error is occurring without your changes, I think the reason is that I didn't yet find time to publish a more recent version of Mercator that Magnolia needs. I've got a few higher priorities to sort to sort out first, but I'll get round to this later this week, I hope.
when you're fixing that, I think you'll want to modify your .travis.yml
to compile the examplesJVM
project (at least), which doesn't currently compile (because of 884eb078cbca57644e37acf8284d77cb269521a5, I think) — this turned up in the Scala community build
I had this issue, adding the types to constructMonadic
solved it.
import mercator.Monadic
type Result[A] = Either[Throwable, A]
ctx.constructMonadic[Result, Any] { p =>
//...
}
Maybe the PType
should not be exposed?
I was trying to make a small change to the
default
example, and wanted to test that my change didn't break anything. The compilation error I see looks like it's an issue between Mercator and Either, my guess is because Either has two type parameters (for Left and Right) and Monad only has one (equivalent to Right), but I don't know enough to submit a PR to fix. Please let me know if there's any more information I can provide!