on fa202ee help sign in
elk/libraries/Debug.elm
17 lines 521 B history raw
1module Debug where
2{-| This library is for investigating bugs or performance problems. It should
3*not* be used in production code.
4-}
6import Native.Debug
8{-| Log a tagged value on the developer console, and then return the value.
10 1 + log "number" 1 -- equals 2, logs "number: 1"
11 length (log "start" []) -- equals 0, logs "start: []"
13Notice that `log` is not a pure function! It should *only* be used for
14investigating bugs or performance problems.
15-}
16log : String -> a -> a
17log = Native.Debug.log