Also, there's some implicit sugar you can import from Algebird to get the + operator on classes with implicit monoid conversions, so you can do: Dependency1 + Dependency2, but I chose to use the explicit form for readability.