Interface IO<A>
- Type Parameters:
A- the type of the result produced by the IO
- All Superinterfaces:
Try0<A, IOException>
- All Known Subinterfaces:
SafeIO<A>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
IO monad for processing files
-
Method Summary
Modifier and TypeMethodDescriptiondefault <B> IO<B> default <B> IO<B> default Af()static IO<LazyString> interact(F<LazyString, LazyString> f) default <B> IO<B> run()default SafeIO<Validation<IOException, A>> safe()Methods inherited from interface Try0
toEffect0, toF0, toP1, toTryEffect0
-
Method Details
-
run
- Throws:
IOException
-
f
- Specified by:
fin interfaceTry0<A, IOException>- Throws:
IOException
-
safe
-
map
-
bind
-
append
-
getContents
-
interact
-