hammox icon indicating copy to clipboard operation
hammox copied to clipboard

[Enhancement] Add support for MapSets

Open kerryb opened this issue 1 year ago • 1 comments

It looks like Hammox doesn’t currently support typespecs that use MapSet.t, because these use Elixir’s :sets module internally, and that declares its types as records.

I’ve created a trivial project to demonstrate the issue – I’m not sure I’ve got the skills to figure out how to fix it, but I might give it a try if I get time.

kerryb avatar Aug 27 '24 12:08 kerryb

Just ran into this same problem. Looks like the underlying type for MapSet now is :sets.set/1, which is a union of both old version (record) and new (map). So even though MapSet will always have the map version the typespec includes a record version.

brettbeatty avatar Feb 28 '25 23:02 brettbeatty

Fixed in https://github.com/msz/hammox/releases/tag/v0.7.1. Sorry for the wait!

msz avatar Jul 26 '25 23:07 msz