Improve streams

implicit def should have result type

There should be a blank line after imports.