sam-goodwin / punchcard

Type-safe AWS infrastructure.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

toSNSTopic should return a Topic, not a CollectedTopic

Jinxit opened this issue · comments

The stream processing part is not really necessary, and it would make type inference much simpler.

commented

Thanks for trying punchcard and discovering this problem. I was encoding the Stream that produced the Topic in its type, but that messes with inference. This PR should fix this #146

Until I release, the workaround is to just cast your CollectedTopic to Topic<T>