arowM/elm-show

A module that provides type-safe ways to convert primitive types to String.


Install
elm-package install arowM/elm-show 1.0.0

Documentation

elm-show

Build Status

Summary

A module that provides type-safe ways to convert primitive types to String.

> import Show
> Show.int 3
"3" : String
> Show.float Nothing 3.4
"3.4" : String
> Show.int 3.4
==================================== ERRORS ====================================

-- TYPE MISMATCH ---------------------------------------------

The argument to function `Show.int` is causing a mismatch.

4|   Show.int 3.4
              ^^^
Function `Show.int` is expecting the argument to be:

    Int

But it is:

    Float

Details

See the documentation.