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:  Profiling install error (Daniel Fischer)
   2.  Does Haskell have a function that creates a list
      corresponding to the nodes in a tree, from the leaf node to the
      root node? (Costello, Roger L.)
   3. Re:  Does Haskell have a function that creates a  list
      corresponding to the nodes in a tree,     from the leaf node to the
      root node? (David Place)
   4.  [Updated] Summary of Chapter 1 of Pearls of Functional
      Algorithm Design (Costello, Roger L.)
   5. Re:  Options for creating a multiple select form via Yesod
      (Michael Snoyman)
   6. Re:  [Updated] Summary of Chapter 1 of Pearls of Functional
      Algorithm Design (Patrick LeBoutillier)
   7.  ~ (saurabh verma)
   8. Re:  [Updated] Summary of Chapter 1 of Pearls of Functional
      Algorithm Design (KC)


----------------------------------------------------------------------

Message: 1
Date: Sat, 11 Jun 2011 12:20:47 +0200
From: Daniel Fischer <[email protected]>
Subject: Re: [Haskell-beginners] Profiling install error
To: [email protected]
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: Text/Plain;  charset="us-ascii"

On Saturday 11 June 2011, 03:43:43, [email protected] wrote:
>  I'm trying to install the profiling version of the base libraries on
>  Fedora 15.  I set the profiling options in ~/.cabal/config then tried
> to reinstall but I get
> 
>  %cabal install base --reinstall
>  Resolving dependencies...
>  cabal: internal error: impossible
> 
>  Is there anything I can do now?

You can't reinstall base, it's wired into the compiler.

Never, *never* (unless you know exactly what you're doing and why it would 
work in your special circumstances) try to upgrade or reinstall boot libs 
(libraries needed for building the compiler, base, containers, array, 
directory, process, time, ghc-prim, integer-gmp/integer-simple, a couple 
more), that is almost guaranteed to break your installation very soon.

Now, what you can do depends on how you got your GHC.

If you got it via your system's package manager (yum, apt, zypper, or 
whatever Fedora uses), there ought to be a profiling package available for 
that, typically it would be named mumble-ghc-prof[iling]-jumble.
That should have been built to work with the system GHC, install that.

If you got your GHC from the ghc-site as a binary bundle, that should 
already include the profiling libraries, if not, that's probably a bug, 
report it (and to get the profiling libraries, you can build from source as 
an immediate measure).

If you built GHC from source, the profiling libraries are by default also 
built, so to not have them, you must have told ghc not to build them in 
mk/build.mk, edit your desired build flavour to include
GhcLibWays += -p
[no guarantee for capitalisation, look it up in mk/build.mk.sample]
and rebuild.



------------------------------

Message: 2
Date: Sat, 11 Jun 2011 08:28:00 -0400
From: "Costello, Roger L." <[email protected]>
Subject: [Haskell-beginners] Does Haskell have a function that creates
        a list corresponding to the nodes in a tree, from the leaf node to the
        root node?
To: "[email protected]" <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

Hi Folks,

I am implementing the following function in another language. I want to see if 
Haskell already has a function that does this; if so, I want to use the Haskell 
function name rather than inventing my own.

Here is the function that I am implementing: consider a tree data structure. I 
pass to the function one of its leaf nodes. The function returns a list 
containing that leaf node as the first element of the list, the leaf node's 
parent as the second element of the list, ..., the tree's root node as the n'th 
element of the list. (The list consists of all the nodes from the leaf node to 
the root node)

Does Haskell have a function that does this?

If not, and you were to define a function for this, what name would you give to 
the function?

/Roger



------------------------------

Message: 3
Date: Sat, 11 Jun 2011 09:42:33 -0400
From: David Place <[email protected]>
Subject: Re: [Haskell-beginners] Does Haskell have a function that
        creates a       list corresponding to the nodes in a tree,      from 
the leaf
        node to the root node?
To: "Costello, Roger L." <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Hi, Roger.

In functional algorithms using trees, nodes usually don't have parent pointers. 
 This would make efficient update impossible.  

____________________
David Place   
Owner, Panpipes Ho! LLC
http://panpipesho.com
[email protected]



On Jun 11, 2011, at 8:28 AM, Costello, Roger L. wrote:

> Hi Folks,
> 
> I am implementing the following function in another language. I want to see 
> if Haskell already has a function that does this; if so, I want to use the 
> Haskell function name rather than inventing my own.
> 
> Here is the function that I am implementing: consider a tree data structure. 
> I pass to the function one of its leaf nodes. The function returns a list 
> containing that leaf node as the first element of the list, the leaf node's 
> parent as the second element of the list, ..., the tree's root node as the 
> n'th element of the list. (The list consists of all the nodes from the leaf 
> node to the root node)
> 
> Does Haskell have a function that does this?
> 
> If not, and you were to define a function for this, what name would you give 
> to the function?
> 
> /Roger
> 
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners




------------------------------

Message: 4
Date: Sat, 11 Jun 2011 11:50:36 -0400
From: "Costello, Roger L." <[email protected]>
Subject: [Haskell-beginners] [Updated] Summary of Chapter 1 of Pearls
        of Functional Algorithm Design
To: "[email protected]" <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

Hi Folks,

I completed my Powerpoint slides which summarize the material in chapter 1 of 
"Pearls of Functional Algorithm Design":

http://www.xfront.com/Pearls-of-Functional-Algorithm-Design/Chapter1/Find-the-smallest-free-number.pptx

/Roger



------------------------------

Message: 5
Date: Sat, 11 Jun 2011 21:03:30 +0300
From: Michael Snoyman <[email protected]>
Subject: Re: [Haskell-beginners] Options for creating a multiple
        select form via Yesod
To: Michael Litchard <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

The best way for code contributions in general is to submit a pull
request on Github. If that's a problem, sending a patch via email
works as well (either directly to me or to web-devel).

Michael

On Sat, Jun 11, 2011 at 1:14 AM, Michael Litchard <[email protected]> wrote:
> Hey! I just added multiSelectField to the Forms library. I'm only
> getting the first value selected, but I think that's because of how
> I'm using multiSelecrField. I'm going to try to change the client code
> to fix this. I'll let you know how it goes. when I get a
> maybeMultiSelectField added I'll show you what I have. What would be
> the best way to submit this?
>
> On Thu, Jun 9, 2011 at 10:05 PM, Michael Snoyman <[email protected]> wrote:
>> Hi Michael,
>>
>> There's nothing jQuery or Javascript specific about a multi-select
>> field: it's just a normal select field with a "multiple" attribute. I
>> would recommend taking the selectField code from yesod-form and
>> modifying it to be multi-select. I'll likely do this myself
>> eventually, but it could be a good learning experience in Yesod (and a
>> great introduction to contributing to the framework if you're so
>> inclined).
>>
>> Michael
>>
>> On Thu, Jun 9, 2011 at 8:29 PM, Michael Litchard <[email protected]> wrote:
>>> I'm trying to create a multiple select form, as illustrated on the 
>>> following:
>>> http://api.jquery.com/selected-selector/
>>>
>>> Here's the options I see possible:
>>>
>>> (1) Write a jQuery widget.
>>> (2) Use plain javascript via Julius
>>> (3) Use the low-level functions in Yesod.Form to write a widget
>>> (4) Use a pre-existing function that does what I need, but am not
>>> aware of this functionality
>>>
>>> (1) has appeal as it looks like something small I can contribute to
>>> the project. It will take me some extra time to figure out the
>>> details. But, I had a look at the other jQuery widgets and they seem
>>> to provide an approachable model to follow.
>>>
>>> (2) This looks like the most straight-forward approach. I'm just
>>> learning javascript so would have to figure out how to capture values
>>> in Haskell from the form.
>>>
>>> (3) This looks like the most difficult way. I don't think I know
>>> enough about the low-level functions in Yesod.Form to be able to
>>> accomplish this in a timely manner.
>>>
>>> (4) This is the best scenario. There's already a way to do this right
>>> now, and I just haven't identified it. If this is the case, I would
>>> appreciate being pointed in the right direction.
>>>
>>> Until informed otherwise, I'm evaluating options 1 and 2. All feedback
>>> welcomed. Thanks to all who made Yesod possible.
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>>>
>>
>



------------------------------

Message: 6
Date: Sat, 11 Jun 2011 14:34:34 -0400
From: Patrick LeBoutillier <[email protected]>
Subject: Re: [Haskell-beginners] [Updated] Summary of Chapter 1 of
        Pearls of Functional Algorithm Design
To: "Costello, Roger L." <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Roger,

I don't have the book, but your slides make it very easy to follow the
algorithms!

Good job,

Patrick


On Sat, Jun 11, 2011 at 11:50 AM, Costello, Roger L. <[email protected]> wrote:
> Hi Folks,
>
> I completed my Powerpoint slides which summarize the material in chapter 1 of 
> "Pearls of Functional Algorithm Design":
>
> http://www.xfront.com/Pearls-of-Functional-Algorithm-Design/Chapter1/Find-the-smallest-free-number.pptx
>
> /Roger
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>



-- 
=====================
Patrick LeBoutillier
Rosem?re, Qu?bec, Canada



------------------------------

Message: 7
Date: Sun, 12 Jun 2011 09:39:56 +0530
From: saurabh verma <[email protected]>
Subject: [Haskell-beginners] ~
To: "Costello, Roger L." <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii


On 11-Jun-2011, at 9:20 PM, Costello, Roger L. wrote:

> Hi Folks,
> 
> I completed my Powerpoint slides which summarize the material in chapter 1 of 
> "Pearls of Functional Algorithm Design":
> 
> http://www.xfront.com/Pearls-of-Functional-Algorithm-Design/Chapter1/Find-the-smallest-free-number.pptx

Is it possible for you to publish a pdf version too ? 

Thanks for sharing the information . 

~saurabh


------------------------------

Message: 8
Date: Sat, 11 Jun 2011 21:50:54 -0700
From: KC <[email protected]>
Subject: Re: [Haskell-beginners] [Updated] Summary of Chapter 1 of
        Pearls of Functional Algorithm Design
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Your preamble problems have nothing to do with the problem of finding
"The Smallest Free Number" and the surprising thing is it can be done
in O(n); a linear time solution unlike your preamble problems.

If you want to see the intermediate data structures you could you
Observe.lhs from Hood from Hackage.

One can compose functions in any language, the concept you're looking
for is "composability".


Your PowerPoint was pretty good but I know you can do better. (from
Randy Pausch's last lecture)




>
> On Sat, Jun 11, 2011 at 11:50 AM, Costello, Roger L. <[email protected]> 
> wrote:
>> Hi Folks,
>>
>> I completed my Powerpoint slides which summarize the material in chapter 1 
>> of "Pearls of Functional Algorithm Design":
>>
>> http://www.xfront.com/Pearls-of-Functional-Algorithm-Design/Chapter1/Find-the-smallest-free-number.pptx
>>
>> /Roger
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>


-- 
--
Regards,
KC



------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 36, Issue 29
*****************************************

Reply via email to