Skip to content

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

Notifications You must be signed in to change notification settings

hudsonbay/dialyzer_playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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})

About

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

Topics

Resources

Stars

Watchers

Forks

Languages