Open anmolitor opened 5 months ago
For reproduction, I am using this package: https://package.elm-lang.org/packages/timo-weike/generic-collections/latest/ManualDict
Further investigation showed that the issue is somewhere in "unwrap", since just wrapping compiles just fine.
Alright, I've found the issue:
In unwrap
I have used Type.named [] config.dictTypeName
, but I should have used customAnn
instead.
It would be great if the error messages regarding type inference were a bit more helpful, but it works.
Feel free to close this issue.
Hi, first off: thanks for the incredible work on this tool. I wanted to use it to generate some boilerplate maps for non-comparable types and ran into problems:
For simplicity, I simplified my code to not use any of my custom types but Int instead:
The generated file looks like this:
Note the missing annotation on
insert
. Even though I specified types on all parameters and the function itself, the issue persists. The code itself is fine, the Elm compiler correctly infers the type.