Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. [Slightly OT] Any Haskell hackers in Rhein-Neckar region?
(C Gosch)
2. Where to discuss and ask questions on "Category Theory"?
(Amitava Shee)
3. class (Monad m) => MonadState s m | m -> s where - What does
m | m -> s construct do? (Amitava Shee)
4. Re: class (Monad m) => MonadState s m | m -> s where - What
does m | m -> s construct do? (Daniel Fischer)
5. Passing data between programs. (MAN)
6. Re: Passing data between programs. (Mike Meyer)
7. Re: Passing data between programs. (C K Kashyap)
8. Re: [Slightly OT] Any Haskell hackers in Rhein-Neckar
region? (Ertugrul Soeylemez)
----------------------------------------------------------------------
Message: 1
Date: Mon, 11 Apr 2011 16:38:06 +0200
From: C Gosch <[email protected]>
Subject: [Haskell-beginners] [Slightly OT] Any Haskell hackers in
Rhein-Neckar region?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
Hello everyone,
sorry, this is slightly off topic; are there any Haskell hackers in the
Rhein-Neckar region, Germany,
on this list? I'm trying to find like-minded people around there, but it
seems so far that
this area is a Haskell blind spot.
Cheers,
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110411/e6fe7fde/attachment-0001.htm>
------------------------------
Message: 2
Date: Mon, 11 Apr 2011 11:12:52 -0400
From: Amitava Shee <[email protected]>
Subject: [Haskell-beginners] Where to discuss and ask questions on
"Category Theory"?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
I am trying to understand Category theory and currently reading
Conceptual Mathematics - A first introduction to categories
by Lawvere and Schanuel
Do you know of a forum to ask clarifications and discuss key ideas? I am
assuming this is not that forum.
Thanks & Regards,
Amitava Shee
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110411/a5c5fb6b/attachment-0001.htm>
------------------------------
Message: 3
Date: Mon, 11 Apr 2011 11:18:44 -0400
From: Amitava Shee <[email protected]>
Subject: [Haskell-beginners] class (Monad m) => MonadState s m | m ->
s where - What does m | m -> s construct do?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
I can across the following construct in ghc source
class (Monad m) => MonadState s m | m -> s where
get :: m s
put :: s -> m ()
I am not aware of the syntactic construct | m -> s just before the where?
Can someone please explain it?
Thanks & Regards,
Amitava Shee
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110411/b64078fb/attachment-0001.htm>
------------------------------
Message: 4
Date: Mon, 11 Apr 2011 17:44:46 +0200
From: Daniel Fischer <[email protected]>
Subject: Re: [Haskell-beginners] class (Monad m) => MonadState s m | m
-> s where - What does m | m -> s construct do?
To: [email protected]
Cc: Amitava Shee <[email protected]>
Message-ID: <[email protected]>
Content-Type: Text/Plain; charset="utf-8"
On Monday 11 April 2011 17:18:44, Amitava Shee wrote:
> I can across the following construct in ghc source
>
> class (Monad m) => MonadState s m | m -> s where
> get :: m s
> put :: s -> m ()
>
> I am not aware of the syntactic construct | m -> s just before the
> where? Can someone please explain it?
>
It introduces a "functional dependency" (look up FunctionalDependencies in
the GHC users' guide, section 7.??).
The '|' separates the instance head (MonadState s m) from the functional
dependenc(y|ies). Here there's one FunDep, m -> s, saying the class
parameter m (the monad) determines the class parameter s (the state).
So for each monad m, there can be at most one state type s such that m is a
'stateful monad' with state s.
If you're already familiar with type families, the remark that this
functional dependency is roughly equivalent to
class (Monad m) => MonadState m where
type MState m :: *
get :: m (MState m)
put :: MState m -> m ()
might be helpful.
>
> Thanks & Regards,
> Amitava Shee
------------------------------
Message: 5
Date: Tue, 12 Apr 2011 00:45:57 -0300
From: MAN <[email protected]>
Subject: [Haskell-beginners] Passing data between programs.
To: [email protected]
Message-ID: <1302579957.2322.27.camel@dy-book>
Content-Type: text/plain; charset="UTF-8"
I've had this problem for a while now, and it's about time I recognize I
need help :P
I've written a few programs in Haskell that excel at numeric and/or
complex computations; I love the efficiency of the language. I do not
love, however, writing GUIs for this pieces of software.
Perhaps it's the echoes of bad times past when trying to install gtk2hs,
or that I know I can crank up some decent UIs in other languages faster.
Whatever the reason, I've been thinking of writing the GUI for my
programs as an extension of the program itself, possibly in another
language.
Assuming the GUI is written in, say, Python, and want to pass data to
the underlying Haskell program, how to send it? I'd like to avoid
touching the disk, but I don't have enough experience to answer my own
questions:
- command line arguments? what if data is large?
- client GUI, server Haskell program, and unix sockets? is there a
simpler way?
Any insights, comments, or experience shared will be greatly
appreciated. Thanks.
------------------------------
Message: 6
Date: Tue, 12 Apr 2011 00:45:10 -0400
From: Mike Meyer <[email protected]>
Subject: Re: [Haskell-beginners] Passing data between programs.
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII
On Tue, 12 Apr 2011 00:45:57 -0300
MAN <[email protected]> wrote:
> I've had this problem for a while now, and it's about time I recognize I
> need help :P
> I've written a few programs in Haskell that excel at numeric and/or
> complex computations; I love the efficiency of the language. I do not
> love, however, writing GUIs for this pieces of software.
> Perhaps it's the echoes of bad times past when trying to install gtk2hs,
> or that I know I can crank up some decent UIs in other languages faster.
> Whatever the reason, I've been thinking of writing the GUI for my
> programs as an extension of the program itself, possibly in another
> language.
> Assuming the GUI is written in, say, Python, and want to pass data to
> the underlying Haskell program, how to send it? I'd like to avoid
> touching the disk, but I don't have enough experience to answer my own
> questions:
> - command line arguments? what if data is large?
Pipes? At least on Unix. One of the two halves of the program starts
the other, with standard input & output for the child going to/from
the parent.
> - client GUI, server Haskell program, and unix sockets? is there a
> simpler way?
These days, pipes seem to be built on top of/using the same
architecture as sockets, so the difference between this and my pipes
suggestion is that the pipes doesn't have to deal with rendezvous
issues.
Come to think of it, Joel Bartlett at DECWRL had a system called ezd
that looked a lot like this, except he did it the other way around:
his server (written in Scheme) provided high-level (for the time)
graphics primitives whose interface was a pair of pipes. I played with
it some back in the day, and I recall it as pretty spiffy (especially
using Bartlett's Scheme compiler for the front end).
And the internet hasn't forgotten it! I found a copy of his WRL Tech
Report on it:
http://www.hpl.hp.com/techreports/Compaq-DEC/WRL-91-6.html
<mike
--
Mike Meyer <[email protected]> http://www.mired.org/consulting.html
Independent Software developer/SCM consultant, email for more information.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
------------------------------
Message: 7
Date: Tue, 12 Apr 2011 11:26:30 +0530
From: C K Kashyap <[email protected]>
Subject: Re: [Haskell-beginners] Passing data between programs.
To: Mike Meyer <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
>
>
> Come to think of it, Joel Bartlett at DECWRL had a system called ezd
> that looked a lot like this, except he did it the other way around:
> his server (written in Scheme) provided high-level (for the time)
> graphics primitives whose interface was a pair of pipes. I played with
> it some back in the day, and I recall it as pretty spiffy (especially
> using Bartlett's Scheme compiler for the front end).
>
> And the internet hasn't forgotten it! I found a copy of his WRL Tech
> Report on it:
> http://www.hpl.hp.com/techreports/Compaq-DEC/WRL-91-6.html
>
> <mike
>
Thanks for the link Mike - I get a feeling that my attempt at
https://github.com/ckkashyap/Chitra
is similar in spirit :) I'll be getting back to it soon.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110412/cc5dc0fe/attachment-0001.htm>
------------------------------
Message: 8
Date: Tue, 12 Apr 2011 11:08:44 +0200
From: Ertugrul Soeylemez <[email protected]>
Subject: Re: [Haskell-beginners] [Slightly OT] Any Haskell hackers in
Rhein-Neckar region?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8
C Gosch <[email protected]> wrote:
> sorry, this is slightly off topic; are there any Haskell hackers in
> the Rhein-Neckar region, Germany, on this list? I'm trying to find
> like-minded people around there, but it seems so far that this area is
> a Haskell blind spot.
Not exactly that region, but I live in Ludwigsburg, near Stuttgart, and
I travel a lot between Ludwigsburg, Stuttgart, N?rnberg and Plzen (CZ).
Greets,
Ertugrul
--
nightmare = unsafePerformIO (getWrongWife >>= sex)
http://ertes.de/
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 34, Issue 21
*****************************************