erlsci / iso8601

An ISO 8601 date formating and parsing library for Erlang
MIT License
130 stars 93 forks source link

This library uses types that are not exported by Erlang's calendar module #55

Closed oubiwann closed 3 years ago

oubiwann commented 3 years ago

In particular, when running dialyzer, these warnings are generated:

   0: Unknown type calendar:hour/0
   0: Unknown type calendar:minute/0
   0: Unknown type calendar:second/0

Looking at calendar.er, it seems that only the following types are exported:

-export_type([date/0, time/0, datetime/0, datetime1970/0]).

Might have to just redefine calendar's private types in this lib ...

oubiwann commented 3 years ago

Fixed in 94c642c.