Idiomatically return a Maybe at the end of a chain

前端 未结 0 2014
时光说笑
时光说笑 2021-01-03 20:26

I have the following code snippet, which kinda works:

launchTask :: (DeviceRepo m) => TaskSpec -> m (Maybe Task)
launchTask taskSpec@TaskSpec { taskSpec         


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