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. Re: Q 2 of 2: GUI and turnkey compiler? (emacstheviking)
2. Re: Sankey Diagram with monads (Brandon Allbery)
3. Re: Abstracting Data.List (mukesh tiwari)
4. Re: Q 1 of 2: How stable is Haskell? (Stephen Tetley)
5. Re: Q 2 of 2: GUI and turnkey compiler? (Giacomo Tesio)
----------------------------------------------------------------------
Message: 1
Date: Fri, 31 May 2013 16:28:19 +0100
From: emacstheviking <[email protected]>
Subject: Re: [Haskell-beginners] Q 2 of 2: GUI and turnkey compiler?
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<CAEiEuU+nbTiD9U1bTwDzJ6DwkodgSHE6hODa9-Db=hckucz...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Whatever he said. All I know is that the last time I copied a binary across
to another box it failed with a "missing libgmp.so" message! Beware!!
On 31 May 2013 15:13, Brandon Allbery <[email protected]> wrote:
> On Fri, May 31, 2013 at 9:03 AM, emacstheviking <[email protected]> wrote:
>
>> I tried that too... but I think I fell foul to a missing library for the
>> arbitrary length arithmetic. can't remember the name of it off-hand though.
>
>
> libgmp? I think there are ways to make that get statically linked as well,
> although various platforms (Debian derivatives, mostly) strongly discourage
> doing this, to the extent that they modify their packaged ghc to force a
> dependency on the system gmp library (and, somewhat ironically, are also
> the ones most prone to having no or an incompatible version installed at
> runtime).
>
> --
> brandon s allbery kf8nh sine nomine
> associates
> [email protected]
> [email protected]
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130531/20c91523/attachment-0001.htm>
------------------------------
Message: 2
Date: Fri, 31 May 2013 11:42:48 -0400
From: Brandon Allbery <[email protected]>
Subject: Re: [Haskell-beginners] Sankey Diagram with monads
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<CAKFCL4U8nPhkpL-GTbPhibOxVVm0vUSSMhR8XJZVCe=vess...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Fri, May 31, 2013 at 11:06 AM, Adrian May <[email protected]
> wrote:
> Well I figured out that I should be using the State monad, but it seems
> not to be behaving like most of the tutorials on the web. Did the syntax
> change? ....
>
mtl-2.x changed all the base monads (State, Reader, Writer, etc.) from
standalone to being transformers atop an Identity monad; this cleans up the
implementation considerably (since we don't have almost exactly the same
code for both the standalone and transformer versions, but means that all
uses of the standalone constructors must be replaced with functions that
build the appropriate transformer. (e.g. State becomes state, unless you
want to spell it out as StateT Identity.)
--
brandon s allbery kf8nh sine nomine associates
[email protected] [email protected]
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130531/8854d155/attachment-0001.htm>
------------------------------
Message: 3
Date: Fri, 31 May 2013 21:13:02 +0530
From: mukesh tiwari <[email protected]>
Subject: Re: [Haskell-beginners] Abstracting Data.List
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<cafhzve-r5xc7ufnrsgrisyoojb7xgg8pue-7qqozifekuyi...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi Brandon,
On Fri, May 31, 2013 at 8:01 PM, Brandon Allbery <[email protected]>wrote:
> On Fri, May 31, 2013 at 6:16 AM, mukesh tiwari <
> [email protected]> wrote:
>
>> Data.List can be abstracted using Foldable and Traversable but
>> unfortunately I could not find the functions corresponding to head, take.
>>
>
> Those are, again, more general than you want. What is the `head` of a
> HashMap? (Consider that an implementation may choose to randomize the hash
> function to avoid hash collision attacks.) Foldable and Traversable express
> the concept of a collection which has no meaningful concept of an element's
> relative position within the collection. ListLike adds the concept of
> position, thereby admitting an indexing operation (and, by extension,
> `head` which is index 0).
>
Thanks for explanation. Precisely a tree was in the mind so there is no
concept of head or take. Data.Foldable.toList could be used to convert the
foldable structure to list but again it's not useful because Giacomo wants
to abstract the List.
-Mukesh
>
> --
> brandon s allbery kf8nh sine nomine
> associates
> [email protected]
> [email protected]
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130531/972f4bea/attachment-0001.htm>
------------------------------
Message: 4
Date: Fri, 31 May 2013 16:48:09 +0100
From: Stephen Tetley <[email protected]>
Subject: Re: [Haskell-beginners] Q 1 of 2: How stable is Haskell?
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<CAB2TPRBcXRAoBfTZmP_AW=-sps8vzxw8+nmqrqewyprsmq3...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
"Haskell" the language defined by the Haskell Report is very stable -
with one revision in the last decade.
"Glasgow Haskell" the dialect of Haskell provided by default by GHC is
fast moving but changes to the Glasgow Haskell language are mostly
"additions" of new features rather than "removals" or "mutations". GHC
can always use standard Haskell when it is invoked with the
appropriate flag.
The standardized Haskell library i.e the Prelude, is very stable;
though the Prelude is very small you will need more libraries to do
any real work.
The "standard" library of Glasgow Haskell i.e. GHC's base libraries is
fairly stable. Though unlike Glasgow Haskell "the language", changes
to the base libraries can as easily be removals and mutations and not
just additions. Significant breaking changes tend to get parceled up
as part of a major release of GHC, so the changes are well publicized.
In "user land", commonly used libraries / frameworks can be highly
dynamic with breaking changes happening frequently.
------------------------------
Message: 5
Date: Fri, 31 May 2013 18:30:37 +0200
From: Giacomo Tesio <[email protected]>
Subject: Re: [Haskell-beginners] Q 2 of 2: GUI and turnkey compiler?
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<cahl7psgd_3wtiuyhfg9mjvsooberw6fb4ujleyyct94qlg2...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I'm wondering why there's no tool that build an EXE that contains
everything is needed. statically linking anything that is required... is
there any problem with ghc here?
Giacomo
On Fri, May 31, 2013 at 5:28 PM, emacstheviking <[email protected]> wrote:
> Whatever he said. All I know is that the last time I copied a binary
> across to another box it failed with a "missing libgmp.so" message! Beware!!
>
> On 31 May 2013 15:13, Brandon Allbery <[email protected]> wrote:
>
>> On Fri, May 31, 2013 at 9:03 AM, emacstheviking <[email protected]>wrote:
>>
>>> I tried that too... but I think I fell foul to a missing library for the
>>> arbitrary length arithmetic. can't remember the name of it off-hand though.
>>
>>
>> libgmp? I think there are ways to make that get statically linked as
>> well, although various platforms (Debian derivatives, mostly) strongly
>> discourage doing this, to the extent that they modify their packaged ghc to
>> force a dependency on the system gmp library (and, somewhat ironically, are
>> also the ones most prone to having no or an incompatible version installed
>> at runtime).
>>
>> --
>> brandon s allbery kf8nh sine nomine
>> associates
>> [email protected]
>> [email protected]
>> unix, openafs, kerberos, infrastructure, xmonad
>> http://sinenomine.net
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130531/ba8d7db5/attachment.htm>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 59, Issue 47
*****************************************