wrap-0.0.0: Wrap a function's return value with another function

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Function.Wrap

Description

Wrap a function's return value with another function.

Synopsis

Documentation

wrap1 Source

Arguments

:: (r -> s)

The final result wrapper.

-> (a1 -> r)

The function to wrap.

-> a1 -> s

The wrapped up function.

Wrap the result of a function applied to 1 argument.

wrap2 Source

Arguments

:: (r -> s)

The final result wrapper.

-> (a1 -> a2 -> r)

The function to wrap.

-> a1 -> a2 -> s

The wrapped up function.

Wrap the result of a function applied to 2 arguments.

wrap3 Source

Arguments

:: (r -> s)

The final result wrapper.

-> (a1 -> a2 -> a3 -> r)

The function to wrap.

-> a1 -> a2 -> a3 -> s

The wrapped up function.

Wrap the result of a function applied to 3 arguments.

wrap4 Source

Arguments

:: (r -> s)

The final result wrapper.

-> (a1 -> a2 -> a3 -> a4 -> r)

The function to wrap.

-> a1 -> a2 -> a3 -> a4 -> s

The wrapped up function.

Wrap the result of a function applied to 4 arguments.

wrap5 Source

Arguments

:: (r -> s)

The final result wrapper.

-> (a1 -> a2 -> a3 -> a4 -> a5 -> r)

The function to wrap.

-> a1 -> a2 -> a3 -> a4 -> a5 -> s

The wrapped up function.

Wrap the result of a function applied to 5 arguments.

wrap6 Source

Arguments

:: (r -> s)

The final result wrapper.

-> (a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> r)

The function to wrap.

-> a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> s

The wrapped up function.

Wrap the result of a function applied to 6 arguments.

wrap7 Source

Arguments

:: (r -> s)

The final result wrapper.

-> (a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> a7 -> r)

The function to wrap.

-> a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> a7 -> s

The wrapped up function.

Wrap the result of a function applied to 7 arguments.

wrap8 Source

Arguments

:: (r -> s)

The final result wrapper.

-> (a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> a7 -> a8 -> r)

The function to wrap.

-> a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> a7 -> a8 -> s

The wrapped up function.

Wrap the result of a function applied to 8 arguments.

wrap9 Source

Arguments

:: (r -> s)

The final result wrapper.

-> (a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> a7 -> a8 -> a9 -> r)

The function to wrap.

-> a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> a7 -> a8 -> a9 -> s

The wrapped up function.

Wrap the result of a function applied to 9 arguments.

wrap10 Source

Arguments

:: (r -> s)

The final result wrapper.

-> (a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> a7 -> a8 -> a9 -> a10 -> r)

The function to wrap.

-> a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> a7 -> a8 -> a9 -> a10 -> s

The wrapped up function.

Wrap the result of a function applied to 10 arguments.

wrap11 Source

Arguments

:: (r -> s)

The final result wrapper.

-> (a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> a7 -> a8 -> a9 -> a10 -> a11 -> r)

The function to wrap.

-> a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> a7 -> a8 -> a9 -> a10 -> a11 -> s

The wrapped up function.

Wrap the result of a function applied to 11 arguments.

wrap12 Source

Arguments

:: (r -> s)

The final result wrapper.

-> (a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> a7 -> a8 -> a9 -> a10 -> a11 -> a12 -> r)

The function to wrap.

-> a1 -> a2 -> a3 -> a4 -> a5 -> a6 -> a7 -> a8 -> a9 -> a10 -> a11 -> a12 -> s

The wrapped up function.

Wrap the result of a function applied to 12 arguments.