Skip to content

Latest commit

 

History

History
73 lines (43 loc) · 964 Bytes

Trace.md

File metadata and controls

73 lines (43 loc) · 964 Bytes
id title
Trace
Module Trace

Source

Functions

spy

function

since 1.0.0

Signature

<A>(a: A): A

Description

Log any value and return it

trace

function

since 1.0.0

Signature

<A>(message: any, out: Lazy<A>): A

Description

Log any value to the console for debugging purposes and then return a value. This will log the value's underlying representation for low-level debugging

traceA

function

since 1.0.0

Signature

traceA<F>(F: Applicative<F>): (message: any) => HKT<F, void>

Description

Log a message to the console for debugging purposes and then return the unit value of the Applicative F

traceM

function

since 1.0.0

Signature

traceM<F>(F: Monad<F>): <A>(a: A) => HKT<F, A>

Description

Log any value to the console and return it in Monad useful when one has monadic chains