What are Monads?
Where can I read about then?
I read that there´s some mathematical foundation under this concept, where
can read about these theories?
+-+
| Marcos Aurélio Almeida da Silva |
| E-mail: [EMAIL PROTECTED]|
+-+
In a message dated 12/12/2002 2:45:31 PM Eastern Standard Time, [EMAIL PROTECTED]
writes:
> What are Monads?
> Where can I read about then?
>
> I read that there´s some mathematical foundation under this
> concept, where
> can read about these theories?
A large set of articles on monads in the
I've found this page a very helpful introduction to Monads and monadic
programming.
http://www.dcs.gla.ac.uk/~nww/Monad.html
Have fun,
Joel.
On Thu, 2002-12-12 at 19:45, [EMAIL PROTECTED] wrote:
> What are Monads?
> Where can I read about then?
>
> I read that theres some mathematical foundatio
Hi Joel and Jim - thanks for your useful responses to Marcos' question.
I've added them to the UsingMonads page of the Haskell Wiki,
http://www.haskell.org/wiki/wiki?UsingMonads
Hope that's OK. Feel free to edit or extend or add your names if you
like.
To everyone else on the list: please ad
Hi,
My application has to manage a data set. I assume the state monad is
designed for this.
The state changes in functions that:
a. perform IO actions and
b. return execution status and execution trace (right now I'm using
WriteT for this).
Is the best solution:
1. to build a monad stack (
I could achive my goals
easier would be appreciated. (I left out comments and function types for the
sake of brevity.)
Thanks a lot in advance.
Madoc.
--
View this message in context:
http://www.nabble.com/Random-numbers---monads---beginner-question-tp17124380p17124380.html
Sent from the Haskell
On 29 Jan 2008, at 9:44 PM, Adam Smyczek wrote:
Hi,
My application has to manage a data set. I assume the state monad
is designed for this.
The state changes in functions that:
a. perform IO actions and
b. return execution status and execution trace (right now I'm using
WriteT for this).
It works like a charm,
thanks a lot Jonathan!
Adam
On Jan 29, 2008, at 10:26 PM, Jonathan Cast wrote:
On 29 Jan 2008, at 9:44 PM, Adam Smyczek wrote:
Hi,
My application has to manage a data set. I assume the state monad
is designed for this.
The state changes in functions that:
a. perf
> Are monad stacks with 3 and more monads common?
> How could an example implementation look like?
I found reading the xmonad code (http://code.haskell.org/xmonad/)
enlightening. The X monad definition can be found in
http://code.haskell.org/xmonad/XMonad/Core.hs
-- | The X monad, a StateT transf
On Jan 30, 2008 12:44 AM, Adam Smyczek <[EMAIL PROTECTED]> wrote:
> Hi,
>
> My application has to manage a data set. I assume the state monad is
> designed for this.
> The state changes in functions that:
> a. perform IO actions and
> b. return execution status and execution trace (right now I'm u
Madoc wrote:
Given a list of numbers, I want to modify each of those numbers by adding a
random offset. However, each such modified number shall stay within certain
bounds, given by the integers minValue and maxValue. After that, I want to
continue computation with the resulting list of type [Int
Madoc wrote:
Given a list of numbers, I want to modify each of those numbers by adding a
random offset. However, each such modified number shall stay within certain
bounds, given by the integers minValue and maxValue. After that, I want to
continue computation with the resulting list of type [Int
2008/5/8 Thomas Dinsdale-Young <[EMAIL PROTECTED]>:
> Madoc wrote:
>
> Given a list of numbers, I want to modify each of those numbers by adding a
>
> random offset. However, each such modified number shall stay within certain
>
> bounds, given by the integers minValue and maxValue. After that, I
On Thu, 8 May 2008, Madoc wrote:
Given a list of numbers, I want to modify each of those numbers by adding a
random offset. However, each such modified number shall stay within certain
bounds, given by the integers minValue and maxValue. After that, I want to
continue computation with the resul
2008/5/8 Madoc <[EMAIL PROTECTED]>:
> Hello,
>
> I am just learning Haskell. Now, I encountered something that I cannot
> solve by myself. Your advice will be greatly appreciated.
>
> Given a list of numbers, I want to modify each of those numbers by adding a
> random offset. However, each such mo
Henning Thielemann wrote:
On Thu, 8 May 2008, Madoc wrote:
minValue = 0::Int
maxValue = 1000::Int
normalize a | a < minValue = minValue
| a > maxValue = maxValue
| otherwise = a
normalize' = min maxValue . max minValue
There is a curiosity here. The functions normal
had a very similar question at the same time.
Thanks very much, this was really great for me!
--
View this message in context:
http://www.nabble.com/Random-numbers---monads---beginner-question-tp17124380p17125957.html
Sent from the Haskell - Haskell-Cafe mailing list archive at
17 matches
Mail list logo