Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mdgriffith/elm-debug-watch

Convenience functions to log the input and output of a function.
https://github.com/mdgriffith/elm-debug-watch

Last synced: about 2 months ago
JSON representation

Convenience functions to log the input and output of a function.

Awesome Lists containing this project

README

        

# elm-debug-watch

Here are some convenience functions to log the input and output of a function.

You can use it just by putting it in front of a function you’re trying to debug.

```elm
import Debug.Watch as Debug

x =
Debug.watch "add one" addOne 5

```

results in a console log of

```console
add one : 5
-> : 6
```