Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow reading from stdin and sockets #36

Open
oshyshko opened this issue May 8, 2017 · 0 comments
Open

Allow reading from stdin and sockets #36

oshyshko opened this issue May 8, 2017 · 0 comments

Comments

@oshyshko
Copy link

oshyshko commented May 8, 2017

I'd like to use imageReader to get frames from stdin.

Perhaps, a generic way of reading from any System.IO.Handle would be even better.

Maybe, something like this:

import System.IO (Handle)

data InputSource = File FilePath
                 | Camera String CameraConfig
                 | InputHandle Handle
                 deriving (Eq, Show) -- System.IO.Handle doesn't have instances for Read and Ord

Or is there another way to read from stdin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant