|> works with normal functions, but the way it is written right now, it doesn't work with type constructors.
Assuming this is wanted, the fix is trivial: change the definition of
|>(x, f::Function) = f(x)
in operators.jl:173 to
|>(x, f::Callable) = f(x)
If you're up to it, please file a pull request. (If there's some reason it shouldn't be defined that way, the PR will get feedback to that extent.)
Cheers,
Kevin