# Path: oslash/ioaction.py
# def put_line(text: str) -> IO:
#     return Put(text, Return(Unit))
# 
# def get_line() -> IO[str]:
#     return Get(Return)


from oslash import put_line, get_line
"""Hello example using bind."""

main = (
	put_line("What is your name?")
	| (lambda _: get_line()
	| (lambda name: put_line("What is your age?")

# Path: oslash/ioaction.py
# def put_line(text: str) -> IO:
#     return Put(text, Return(Unit))
# 
# def get_line() -> IO[str]:
#     return Get(Return)


# Path: examples/hello.py
from oslash import put_line, get_line

"""Hello example using bind."""

main = (
	put_line("What is your name?")
	| (lambda _: get_line()
	| (lambda name: put_line("What is your age?")

	| (lambda _: get_line()