Uses of Interface
fj.data.IO
-
Packages that use IO Package Description fj Types that set the premise for the existence of Functional Java.fj.data Common algebraic data types.fj.data.optic Optic data types adapted from the Scala Monocle library and inspired by the Haskell Lens library. -
-
Uses of IO in fj
Methods in fj that return IO Modifier and Type Method Description static <A> IO<A>
Try. io(Try0<A,? extends java.io.IOException> t)
<C> IO<P2<A,C>>
P2. traverseIO(F<B,IO<C>> f)
Methods in fj that return types with arguments of type IO Modifier and Type Method Description static <A> Monoid<IO<A>>
Monoid. ioMonoid(Monoid<A> ma)
A monoid for IO values.static <A> Semigroup<IO<A>>
Semigroup. ioSemigroup(Semigroup<A> sa)
A semigroup for IO values.Method parameters in fj with type arguments of type IO Modifier and Type Method Description <C> IO<P2<A,C>>
P2. traverseIO(F<B,IO<C>> f)
-
Uses of IO in fj.data
Subinterfaces of IO in fj.data Modifier and Type Interface Description interface
SafeIO<A>
Fields in fj.data declared as IO Modifier and Type Field Description static IO<Unit>
IOFunctions. ioUnit
Fields in fj.data with type parameters of type IO Modifier and Type Field Description static F<java.io.Reader,IO<Unit>>
IOFunctions. closeReader
Methods in fj.data that return IO Modifier and Type Method Description default <B> IO<B>
IO. append(IO<B> iob)
static <A,B>
IO<B>IOFunctions. append(IO<A> io1, IO<B> io2)
static <A,B>
IO<B>IOFunctions. apply(IO<A> io, IO<F<A,B>> iof)
static <A,B>
IO<B>IOFunctions. as(IO<A> io, B b)
default <B> IO<B>
IO. bind(F<A,IO<B>> f)
static <A,B>
IO<B>IOFunctions. bind(IO<A> io, F<A,IO<B>> f)
static <A,B,C>
IO<C>IOFunctions. bracket(IO<A> init, F<A,IO<B>> fin, F<A,IO<C>> body)
static IO<java.io.BufferedReader>
IOFunctions. bufferedReader(java.io.File f, Option<java.nio.charset.Charset> encoding)
static IO<Unit>
IOFunctions. closeReader(java.io.Reader r)
static IO<Unit>
Conversions. Effect_IO(Effect0 e)
static <A> IO<Iteratee.IterV<char[],A>>
IOFunctions. enumFileCharChunks(java.io.File f, Option<java.nio.charset.Charset> encoding, Iteratee.IterV<char[],A> i)
An IO monad that reads char chunks from the given file and passes them to the given iteratee.static <A> IO<Iteratee.IterV<java.lang.Character,A>>
IOFunctions. enumFileChars(java.io.File f, Option<java.nio.charset.Charset> encoding, Iteratee.IterV<java.lang.Character,A> i)
An IO monad that reads char chunks from the given file and passes single chars to the given iteratee.static <A> IO<Iteratee.IterV<java.lang.String,A>>
IOFunctions. enumFileLines(java.io.File f, Option<java.nio.charset.Charset> encoding, Iteratee.IterV<java.lang.String,A> i)
An IO monad that reads lines from the given file (using aBufferedReader
) and passes lines to the provided iteratee.IO<Iteratee.IterV<char[],A>>
IOFunctions.CharChunkReader. f(Iteratee.IterV<char[],A> it)
IO<Iteratee.IterV<java.lang.Character,A>>
IOFunctions.CharChunkReader2. f(Iteratee.IterV<java.lang.Character,A> it)
IO<Iteratee.IterV<java.lang.String,A>>
IOFunctions.LineReader. f(Iteratee.IterV<java.lang.String,A> it)
static IO<java.io.Reader>
IOFunctions. fileReader(java.io.File f, Option<java.nio.charset.Charset> encoding)
static <A,B>
IO<B>IOFunctions. flatMap(IO<A> io, F<A,IO<B>> f)
static <A> IO<A>
IOFunctions. fromF(F0<A> p)
static <A> IO<A>
IOFunctions. fromTry(Try0<A,? extends java.io.IOException> t)
static IO<LazyString>
IO. getContents()
static IO<LazyString>
IOFunctions. getContents()
static IO<Unit>
IO. interact(F<LazyString,LazyString> f)
static IO<Unit>
IOFunctions. interact(F<LazyString,LazyString> f)
static IO<Unit>
IOFunctions. interactWhile(F<java.lang.String,java.lang.Boolean> condition, F<java.lang.String,java.lang.String> transform)
Read lines from stdin until condition is not met, transforming each line and printing the result to stdout.static <A> IO<A>
IOFunctions. join(IO<IO<A>> io1)
static <A> IO<A>
IOFunctions. lazy(F<Unit,A> f)
static <A> IO<A>
IOFunctions. lazy(F0<A> p)
static <A,B>
IO<A>IOFunctions. left(IO<A> io1, IO<B> io2)
static <A,B,C>
IO<C>IOFunctions. liftM2(IO<A> ioa, IO<B> iob, F2<A,B,C> f)
default <B> IO<B>
IO. map(F<A,B> f)
static <A,B>
IO<B>IOFunctions. map(IO<A> io, F<A,B> f)
static <A> IO<State<java.io.BufferedReader,Validation<java.io.IOException,java.lang.String>>>
IOFunctions. readerState()
static <A> IO<List<A>>
IOFunctions. replicateM(IO<A> ioa, int n)
static <A> IO<List<A>>
IOFunctions. sequence(List<IO<A>> list)
Evaluate each action in the sequence from left to right, and collect the results.static <A> IO<Stream<A>>
IOFunctions. sequence(Stream<IO<A>> stream)
static <B> IO<List<B>>
List. sequenceIO(List<IO<B>> list)
Sequence the given list and collect the output as an IO.static <B> IO<Option<B>>
Option. sequenceIO(Option<IO<B>> option)
Sequence the given option and collect the output as an IO.static <B> IO<Seq<B>>
Seq. sequenceIO(Seq<IO<B>> seq)
Sequence the given seq and collect the output as an IO.static <B> IO<Stream<B>>
Stream. sequenceIO(Stream<IO<B>> stream)
Sequence the given stream and collect the output as an IO.static <E,C>
IO<Validation<E,C>>Validation. sequenceIO(Validation<E,IO<C>> validation)
Sequence the given validation and collect the output as an IO.static <A> IO<Stream<A>>
IOFunctions. sequenceWhile(Stream<IO<A>> stream, F<A,java.lang.Boolean> f)
static <A> IO<Stream<A>>
IOFunctions. sequenceWhileEager(Stream<IO<A>> stream, F<A,java.lang.Boolean> f)
static IO<java.lang.String>
IOFunctions. stdinReadLine()
static IO<Unit>
IOFunctions. stdoutPrint(java.lang.String s)
static IO<Unit>
IOFunctions. stdoutPrintln(java.lang.String s)
<C> IO<Either<C,B>>
Either.LeftProjection. traverseIO(F<A,IO<C>> f)
Anonymous bind through this projection.<C> IO<Either<A,C>>
Either.RightProjection. traverseIO(F<B,IO<C>> f)
Traverse with a function that has IO effect<X> IO<Either3<X,B,C>>
Either3.LeftProjection. traverseIO(F<A,IO<X>> f)
<X> IO<Either3<A,X,C>>
Either3.MiddleProjection. traverseIO(F<B,IO<X>> f)
<X> IO<Either3<A,B,X>>
Either3.RightProjection. traverseIO(F<C,IO<X>> f)
<B> IO<List<B>>
List. traverseIO(F<A,IO<B>> f)
Traverse this list with the given function and collect the output as an IO.<B> IO<Option<B>>
Option. traverseIO(F<A,IO<B>> f)
Traverse this option with the given function and collect the output as an IO.<B> IO<Seq<B>>
Seq. traverseIO(F<A,IO<B>> f)
Traverse this seq with the given function and collect the output as an IO.<B> IO<Stream<B>>
Stream. traverseIO(F<A,IO<B>> f)
Traverse this stream with the given function and collect the output as an IO.<C> IO<Validation<E,C>>
Validation. traverseIO(F<T,IO<C>> f)
Traverse this validation with the given function and collect the output as an IO.<C> IO<Either<C,B>>
Either. traverseIOLeft(F<A,IO<C>> f)
Traversable instance of LeftProjection of Either for IO.<C> IO<Either<A,C>>
Either. traverseIORight(F<B,IO<C>> f)
Traversable instance of RightProjection of Either for IO.static <A,B,Z extends java.io.IOException>
IO<A>Conversions. Try_IO(Try0<A,Z> t)
static <A> IO<A>
IOFunctions. unit(A a)
static IO<Unit>
IOFunctions. unless(java.lang.Boolean b, IO<Unit> io)
static <A> IO<Unit>
IOFunctions. voided(IO<A> io)
static IO<Unit>
IOFunctions. when(java.lang.Boolean b, IO<Unit> io)
Methods in fj.data that return types with arguments of type IO Modifier and Type Method Description static <A> F<java.io.Reader,F<Iteratee.IterV<char[],A>,IO<Iteratee.IterV<char[],A>>>>
IOFunctions. charChunkReader()
A function that feeds an iteratee with character chunks read from aReader
(char[] of sizeIOFunctions.DEFAULT_BUFFER_SIZE
).static <A> F<java.io.Reader,F<Iteratee.IterV<java.lang.Character,A>,IO<Iteratee.IterV<java.lang.Character,A>>>>
IOFunctions. charChunkReader2()
A function that feeds an iteratee with characters read from aReader
(chars are read in chunks of sizeIOFunctions.DEFAULT_BUFFER_SIZE
).static F<Effect0,IO<Unit>>
Conversions. Effect_IO()
static <A> F<java.io.BufferedReader,F<Iteratee.IterV<java.lang.String,A>,IO<Iteratee.IterV<java.lang.String,A>>>>
IOFunctions. lineReader()
A function that feeds an iteratee with lines read from aBufferedReader
.static <A> Stream<IO<A>>
Stream. sequence(IO<Stream<A>> io)
Sequence through the Stream monad.static <A,B,Z extends java.io.IOException>
F<Try0<A,Z>,IO<A>>Conversions. Try_IO()
Methods in fj.data with parameters of type IO Modifier and Type Method Description default <B> IO<B>
IO. append(IO<B> iob)
static <A,B>
IO<B>IOFunctions. append(IO<A> io1, IO<B> io2)
static <A,B>
IO<B>IOFunctions. apply(IO<A> io, IO<F<A,B>> iof)
static <A,B>
IO<B>IOFunctions. as(IO<A> io, B b)
static <A,B>
IO<B>IOFunctions. bind(IO<A> io, F<A,IO<B>> f)
static <A,B,C>
IO<C>IOFunctions. bracket(IO<A> init, F<A,IO<B>> fin, F<A,IO<C>> body)
static <A,B>
IO<B>IOFunctions. flatMap(IO<A> io, F<A,IO<B>> f)
static <A> IO<A>
IOFunctions. join(IO<IO<A>> io1)
static <A,B>
IO<A>IOFunctions. left(IO<A> io1, IO<B> io2)
static <A,B,C>
IO<C>IOFunctions. liftM2(IO<A> ioa, IO<B> iob, F2<A,B,C> f)
static <A,B>
IO<B>IOFunctions. map(IO<A> io, F<A,B> f)
static <A> P1<Validation<java.io.IOException,A>>
IOFunctions. p(IO<A> io)
static <A> IO<List<A>>
IOFunctions. replicateM(IO<A> ioa, int n)
static <A> A
IOFunctions. runSafe(IO<A> io)
Run io, rethrowing any IOException wrapped in a RuntimeExceptionstatic <A> Stream<IO<A>>
Stream. sequence(IO<Stream<A>> io)
Sequence through the Stream monad.static <A> SafeIO<A>
IOFunctions. toSafe(IO<A> io)
Convert io to a SafeIO, throwing any IOException wrapped inside a RuntimeExceptionstatic <A> SafeIO<Validation<java.io.IOException,A>>
IOFunctions. toSafeValidation(IO<A> io)
static <A> Try0<A,java.io.IOException>
IOFunctions. toTry(IO<A> io)
static IO<Unit>
IOFunctions. unless(java.lang.Boolean b, IO<Unit> io)
static <A> IO<Unit>
IOFunctions. voided(IO<A> io)
static IO<Unit>
IOFunctions. when(java.lang.Boolean b, IO<Unit> io)
Method parameters in fj.data with type arguments of type IO Modifier and Type Method Description default <B> IO<B>
IO. bind(F<A,IO<B>> f)
static <A,B>
IO<B>IOFunctions. bind(IO<A> io, F<A,IO<B>> f)
static <A,B,C>
IO<C>IOFunctions. bracket(IO<A> init, F<A,IO<B>> fin, F<A,IO<C>> body)
static <A,B>
IO<B>IOFunctions. flatMap(IO<A> io, F<A,IO<B>> f)
static <A> IO<A>
IOFunctions. join(IO<IO<A>> io1)
static <A> IO<List<A>>
IOFunctions. sequence(List<IO<A>> list)
Evaluate each action in the sequence from left to right, and collect the results.static <A> IO<Stream<A>>
IOFunctions. sequence(Stream<IO<A>> stream)
static <B> IO<List<B>>
List. sequenceIO(List<IO<B>> list)
Sequence the given list and collect the output as an IO.static <B> IO<Option<B>>
Option. sequenceIO(Option<IO<B>> option)
Sequence the given option and collect the output as an IO.static <B> IO<Seq<B>>
Seq. sequenceIO(Seq<IO<B>> seq)
Sequence the given seq and collect the output as an IO.static <B> IO<Stream<B>>
Stream. sequenceIO(Stream<IO<B>> stream)
Sequence the given stream and collect the output as an IO.static <E,C>
IO<Validation<E,C>>Validation. sequenceIO(Validation<E,IO<C>> validation)
Sequence the given validation and collect the output as an IO.static <A> IO<Stream<A>>
IOFunctions. sequenceWhile(Stream<IO<A>> stream, F<A,java.lang.Boolean> f)
static <A> IO<Stream<A>>
IOFunctions. sequenceWhileEager(Stream<IO<A>> stream, F<A,java.lang.Boolean> f)
<C> IO<Either<C,B>>
Either.LeftProjection. traverseIO(F<A,IO<C>> f)
Anonymous bind through this projection.<C> IO<Either<A,C>>
Either.RightProjection. traverseIO(F<B,IO<C>> f)
Traverse with a function that has IO effect<X> IO<Either3<X,B,C>>
Either3.LeftProjection. traverseIO(F<A,IO<X>> f)
<X> IO<Either3<A,X,C>>
Either3.MiddleProjection. traverseIO(F<B,IO<X>> f)
<X> IO<Either3<A,B,X>>
Either3.RightProjection. traverseIO(F<C,IO<X>> f)
<B> IO<List<B>>
List. traverseIO(F<A,IO<B>> f)
Traverse this list with the given function and collect the output as an IO.<B> IO<Option<B>>
Option. traverseIO(F<A,IO<B>> f)
Traverse this option with the given function and collect the output as an IO.<B> IO<Seq<B>>
Seq. traverseIO(F<A,IO<B>> f)
Traverse this seq with the given function and collect the output as an IO.<B> IO<Stream<B>>
Stream. traverseIO(F<A,IO<B>> f)
Traverse this stream with the given function and collect the output as an IO.<C> IO<Validation<E,C>>
Validation. traverseIO(F<T,IO<C>> f)
Traverse this validation with the given function and collect the output as an IO.<C> IO<Either<C,B>>
Either. traverseIOLeft(F<A,IO<C>> f)
Traversable instance of LeftProjection of Either for IO.<C> IO<Either<A,C>>
Either. traverseIORight(F<B,IO<C>> f)
Traversable instance of RightProjection of Either for IO. -
Uses of IO in fj.data.optic
Methods in fj.data.optic that return types with arguments of type IO Modifier and Type Method Description F<S,IO<S>>
Lens. modifyIOF(F<A,IO<A>> f)
F<S,IO<S>>
Optional. modifyIOF(F<A,IO<A>> f)
F<S,IO<T>>
PIso. modifyIOF(F<A,IO<B>> f)
modify polymorphically the target of aPIso
with an Applicative functionabstract F<S,IO<T>>
PLens. modifyIOF(F<A,IO<B>> f)
modify polymorphically the target of aPLens
with an Applicative functionabstract F<S,IO<T>>
POptional. modifyIOF(F<A,IO<B>> f)
modify polymorphically the target of aPOptional
with an Applicative functionF<S,IO<T>>
PPrism. modifyIOF(F<A,IO<B>> f)
modify polymorphically the target of aPPrism
with an Applicative functionabstract F<S,IO<T>>
PTraversal. modifyIOF(F<A,IO<B>> f)
modify polymorphically the target of aPTraversal
with an Applicative functionF<S,IO<S>>
Traversal. modifyIOF(F<A,IO<A>> f)
Method parameters in fj.data.optic with type arguments of type IO Modifier and Type Method Description F<S,IO<S>>
Lens. modifyIOF(F<A,IO<A>> f)
F<S,IO<S>>
Optional. modifyIOF(F<A,IO<A>> f)
F<S,IO<T>>
PIso. modifyIOF(F<A,IO<B>> f)
modify polymorphically the target of aPIso
with an Applicative functionabstract F<S,IO<T>>
PLens. modifyIOF(F<A,IO<B>> f)
modify polymorphically the target of aPLens
with an Applicative functionabstract F<S,IO<T>>
POptional. modifyIOF(F<A,IO<B>> f)
modify polymorphically the target of aPOptional
with an Applicative functionF<S,IO<T>>
PPrism. modifyIOF(F<A,IO<B>> f)
modify polymorphically the target of aPPrism
with an Applicative functionabstract F<S,IO<T>>
PTraversal. modifyIOF(F<A,IO<B>> f)
modify polymorphically the target of aPTraversal
with an Applicative functionF<S,IO<S>>
Traversal. modifyIOF(F<A,IO<A>> f)
-