Multiple MonadReader constraints on a single method

后端 未结 0 958
孤街浪徒
孤街浪徒 2021-02-06 06:09

It doesn\'t look like anything stops you from defining a function like this:

tmp :: (MonadReader Int m, MonadReader Bool m) => m Int
tmp = ifM ask ((+1) <$&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题