Conversation
|
I think you could also depend on Also, thank you for this terrific library. We're putting it to good use at circuithub.com! If you would like help maintaining this library, just let me know and I'll be more than happy to help. |
|
Alas, I don't think this actually does what I want: > runSearch $ evalAccumT ((lift (cost' (Sum 1)) >> add ['a'] >> look) <|> (lift (cost' (Sum 2)) >> add ['b'] >> look)) []
[(Sum {getSum = 1},"a"),(Sum {getSum = 2},"b")]
> runSearch $ mapSearchT (flip evalAccumT []) $ (cost' (Sum 1) >> lift (add ['a']) >> lift look) <|> (cost' (Sum 2) >> lift (add ['b']) >> lift look)
(Sum {getSum = 1},"a"),(Sum {getSum = 2},"b")]I was hoping that the latter would have This does work: > runAccum (runSearchT ((cost' (Sum 1) >> lift (add ['a']) >> lift look) <|> (cost' (Sum 2) >> lift (add ['b']) >> lift look))) []
([(Sum {getSum = 1},"a"),(Sum {getSum = 2},"ab")],"ab")But I don't want to leave the Back to the drawing board! |
No description provided.