type applications - Polysemy

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

drlkf

is it a bad sign if i start to rely on type applications in my effects machinery ? i fumbled around and even in simple cases like calling a Sem within another Sem with the same constraints, ghc seems to need indications e.g.

prog1 :: Member (Reader c) r => Sem r ()
prog1 = undefined

prog2 :: forall c r. Member (Reader c) r => Sem r ()
prog2 = prog1 @c

without the type application after prog2 = prog1, this doesn't compile

Torsten Schmits

yep, either that or you can use the plugin

drlkf

rofl i wish i had known that 2 days ago