Created
November 22, 2019 17:15
-
-
Save vigoo/7debb536416c053378b0b23571185602 to your computer and use it in GitHub Desktop.
prox 3/8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implicit class ProcessNodeOutputRedirect[PN <: ProcessNode[_, _, _, NotRedirected, _]](processNode: PN) { | |
def >[F[_], To, NewOut, NewOutResult, Result <: ProcessNode[_, _, _, Redirected, _]] | |
(to: To) | |
(implicit | |
target: CanBeProcessOutputTarget.Aux[F, To, NewOut, NewOutResult], | |
redirectOutput: RedirectOutput.Aux[F, PN, To, NewOut, NewOutResult, Result]): Result = { | |
redirectOutput(processNode, to) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment