[Haskell-beginners] MonadThrow, MonadReader and shake

PICCA Frederic-Emmanuel frederic-emmanuel.picca at synchrotron-soleil.fr
Wed Dec 19 09:30:39 UTC 2018

> I've swapped the args above, it should be:

> liftIO $ runReaderT (toRuchePath attachements) stateBeforeCallingShake

Hello, I was struggling with strange errors :).
Now it works. thanks a lot.
I am just wondering if the best it not to add a parameter to my toRuchePath function and avoid the Reader Monad.
this would simplify the code I gess.

> With additional `MonadThrow Action` and `MonadReader Beamline Action`
> instances it should work. But the MonadReader one is really specific to
> your use case.

I will try also this.

thansk a lot.


More information about the Beginners mailing list