/dialyzer_playground

Different example files that demonstrate how Dialyzer can catch simple type errors

Primary LanguageElixir

DialyzerPlayground

This project is a simple currency converter that converts Singapore dollars (SGD) to United States dollars (USD).

It aims to create example files that demonstrate how Dialyzer can catch simple type errors.

This is the result of following The Little Elixir & OTP Guidebook book from Benjamin Tan Wei Hao, released in 2017 by Manning Publications.

Installation

mix do deps.get, deps.compile

Try it and see the errors thrown by dialyzer

mix dialyzer

Play with the project

MyEnum.map(fn x -> x * 2 end, [1,2,3])

Hexy.rgb_to_hex({170, 201, 13})