[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haskell-beginners
Subject:    Re: [Haskell-beginners] MonadThrow, MonadReader and shake
From:       PICCA Frederic-Emmanuel <frederic-emmanuel.picca () synchrotron-soleil ! fr>
Date:       2018-12-19 9:30:39
Message-ID: A2A20EC3B8560D408356CAC2FC148E53015B366950 () SUN-DAG3 ! synchrotron-soleil ! fr
[Download RAW message or body]

> 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.

Frederic
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic