purescript-codec icon indicating copy to clipboard operation
purescript-codec copied to clipboard

refactor: type arguments -> make more meaningful

Open srghma opened this issue 5 years ago • 2 comments

srghma avatar Mar 28 '20 19:03 srghma

I'm probably not going to merge this, I don't think naming type variables in very abstract types is useful - even with the names I'd still need to figure it out interactively using holes and such, and as you found, some of the vars don't even have sensible names, or their meaning changes depending on use case.

Mostly these types will be interacted with in a context where the vars are mostly concrete anyway, such as JsonCodec, JPropCodec, etc.

garyb avatar Mar 28 '20 20:03 garyb

as you found, some of the vars don't even have sensible names

Only in compose methods

Maybe names are not right, but they give at least some context. I dont know how else to resolve this problem.

srghma avatar Mar 29 '20 07:03 srghma