Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  MonadThrow, MonadReader and shake (PICCA Frederic-Emmanuel)


----------------------------------------------------------------------

Message: 1
Date: Wed, 19 Dec 2018 09:30:39 +0000
From: PICCA Frederic-Emmanuel
        <frederic-emmanuel.pi...@synchrotron-soleil.fr>
To: "The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell" <beginners@haskell.org>
Subject: Re: [Haskell-beginners] MonadThrow, MonadReader and shake
Message-ID:
        
<a2a20ec3b8560d408356cac2fc148e53015b366...@sun-dag3.synchrotron-soleil.fr>
        
Content-Type: text/plain; charset="us-ascii"

> 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

------------------------------

Subject: Digest Footer

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


------------------------------

End of Beginners Digest, Vol 126, Issue 14
******************************************

Reply via email to