monads
Composable Locks using LINQ. Can anyone see any problem with this?
I was playing around with LINQ and I came up with the following idea for composing locks taking advantage of C# Monadic syntax. It seems too simple, so I thought let me post it on StackOverflow and se[详细]
2023-02-11 17:35 分类:问答Why wrapping the Data.Binary.Put monad creates a memory leak? (Part 2)
As in my previous question, I\'m trying to wrap the Data.Binary.Put monad into another monad so that later I can ask it questions like \"how many bytes it\'s going to write\" or \"what is the current[详细]
2023-02-11 02:18 分类:问答Using the reader monad in snap (or, monad transformers in snap)
Can someone show how to use the snap monad inside the reader monad?Monad transformers confuse me.(Alternatively, I will gladly accept suggestions of tutorials about monad transformers, and ways to see[详细]
2023-02-08 17:32 分类:问答Seeking constructive criticism on monad implementation
I\'m learning monads, this is my first working one (aside from the trivial monad). Feel free to criticize everything in it ruthlessly. I\'m especially interested in \"more idiomatic\" and \"more elega[详细]
2023-02-06 06:26 分类:问答Where can I learn advanced Haskell? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-02-03 00:05 分类:问答Extending of pure function with IO code possible?
I\'ve written a simple XML parser in Haskell. The function convertXML recieves contents of a XML file and returns a list of extracted values that are further processed.[详细]
2023-02-02 16:48 分类:问答Haskell add writer to function
here is the snippet to calculate whether knight can move to desired position within x moves: import Control.Monad (guard)[详细]
2023-02-01 01:27 分类:问答Is there some usage of monads at .net environment?
I have learned few days ago how about Haskell monads, is there some usage of monads concept at .net environment ?[详细]
2023-01-31 22:23 分类:问答MonadPlus definition for Haskell IO
I was just writing a quick bit of code, and I wanted to use the guard function in the IO Monad. However, there is no definition of MonadPlus for IO which means that we cannot use guard in IO land. I h[详细]
2023-01-31 12:22 分类:问答Monad theory and Haskell
Most tutorials seem to give a lot of examples of monads (IO, state, list and so on) and then expect the reader to be able to abstract the overall principle and then they mention category theory. I don[详细]
2023-01-31 07:13 分类:问答