monads
Haskell function type with IO
I\'m confusing w开发者_如何转开发ith some stuff in haskell.First I\'ll explain my problem clearly,[详细]
2023-03-01 01:51 分类:问答functional java: what's this P1 thing?
I\'m looking at Functional Java and I don\'t understand what a P1 is. Could anyone explain and/or give an example?[详细]
2023-02-28 23:19 分类:问答Is there a reason workflow builders in F# don't use interfaces?
This is a question just out of curiosity: when you implement a workflow factory, you don\'t do it as an interface implementation, but rather just make sure the function signatures of the monad functio[详细]
2023-02-28 22:11 分类:问答Design of interface abstraction
Currently, I try to write a small game program (Skat) as a hobby project. Skat is a trick-taking game were two players play against a single player. As there are different kinds of players (lokal play[详细]
2023-02-28 22:00 分类:问答How are mutable arrays implemented in Haskell?
I\'ve read many research papers on this topic, and they usually argue that arrays are implemented using Monads. But none of these papers gave a clear definition of how the \"type\" Array itself should[详细]
2023-02-28 05:01 分类:问答possible to make some output in do notation and then return a String in haskell?
is it possible in haskell, to make some operations live output and then return a string with a function like:[详细]
2023-02-28 03:37 分类:问答check if element exists on the sub-list
I can have many Figures on my list. Each Figure can have many Rectangles on its list. I have a problem with my function checkNewRectangleId - this function should ask user about new rectangle id until[详细]
2023-02-27 19:25 分类:问答couldn't match expected type IO t
Could You tell my why I have error \'Couldn\'t match expected type IO开发者_运维问答 t against inferred type String\' - see below to see bad line:[详细]
2023-02-26 04:16 分类:问答Haskell - error by execution
I try to write a this monad data W x = W x [String] instance Monad W where return x = W x [] W a h1 >>= f = case f a of[详细]
2023-02-25 12:57 分类:问答Haskell function to get part of date as string
I have a beginner question about dates and String in Haskell. I need to get part of date (year, month or day) as String in Haskell. I found out, that if I write the following two lines in GHCi[详细]
2023-02-23 03:17 分类:问答