Open codygman opened 4 years ago
Ah, it just needs a type application:
- & evalState ""
+ & evalState @String ""
You probably should have plugin enabled - use -fplugin=Polysemy.Plugin
either through options_ghc
pragma or project configuration.
Thanks for the quick response @TheMatten, it works perfectly. I had forgotten all about the plugin :stuck_out_tongue_winking_eye:
https://github.com/polysemy-research/polysemy/blob/3c731186cb5ebcfc9319586e0b691b985c6730e2/src/Polysemy/Internal.hs#L95
If I past the above example into a source file, resulting in:
I get the following: