0 | module Data.Swirl.Console
2 | import public Data.Swirl
4 | import public Language.Implicits.IfUnsolved
11 | stdinAsChars : HasIO io =>
13 | (0 _ : IfUnsolved io IO) =>
14 | (0 _ : IfUnsolved e Void) =>
15 | (0 _ : IfUnsolved r ()) =>
17 | stdinAsChars = tickUntil (fEOF @{ByResult} stdin) >> getChar
20 | stdinAsLines : HasIO io =>
22 | (0 _ : IfUnsolved io IO) =>
23 | (0 _ : IfUnsolved e Void) =>
24 | (0 _ : IfUnsolved r ()) =>
26 | stdinAsLines = tickUntil (fEOF @{ByResult} stdin) >> getLine