Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Problem install Gtk (David McBride)
   2. Re:  Sorting (Francesco Ariis)
   3. Re:  Problem install Gtk (Mihai Maruseac)


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

Message: 1
Date: Tue, 13 Dec 2016 09:42:30 -0500
From: David McBride <toa...@gmail.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: Re: [Haskell-beginners] Problem install Gtk
Message-ID:
        <can+tr42jw7kpgn1a51pu-yyvweqag1u0k-rkadtqnvmmfar...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

GTK is a linux graphics toolkit.  It does not run on windows.

On Tue, Dec 13, 2016 at 8:23 AM, Arnim Fiebig <guenter.fie...@online.de>
wrote:

> The same happen on Win8.1 and another Pc with win7
>
>
> 1. install 'HaskellPlatform-8.0.1-full-x86_64-setup-a'
>   ok
>
> 2. copy 'gtk+-bundle_3.6.4-20130513_win64' to C:\Gtk\             ok
>
> 3. 'cabal install gtk'
>                         failed
>
>
> Thanks for help
> Guenter
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20161213/2d9fdec0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phjidiombkcgeenh.gif
Type: image/gif
Size: 8169 bytes
Desc: not available
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20161213/2d9fdec0/attachment-0001.gif>

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

Message: 2
Date: Tue, 13 Dec 2016 16:23:29 +0100
From: Francesco Ariis <fa...@ariis.it>
To: beginners@haskell.org
Subject: Re: [Haskell-beginners] Sorting
Message-ID: <20161213152329.ga10...@casa.casa>
Content-Type: text/plain; charset=utf-8

On Tue, Dec 13, 2016 at 02:36:39PM +0000, mike h wrote:
> Hi,
> 
> I’m trying to sort a list of tuples. A char and a count of that char (Char , 
> Int) 
> e.g.
> 
> [ ('r',2), ('c',2),('a', 2), ('b',3), ('f',2)]
> 
> e.g. ‘r’ occurs twice etc.
> The order should be based on the count first and then ties broken by the 
> natural ordering of char.

You should provide sortBy with an appropriate compare function, e.g.

    comp (a,b) (c,d) | a > c = GT
                     | -- etc etc.

or go with the manky but working hack:

λ> :m Data.List
λ> sortOn (\(a, b) -> b*(-100) + fromEnum a) [('r',2), ('c',2),('a', 2), 
('b',3), ('f',2)]
[('b',3),('a',2),('c',2),('f',2),('r',2)]



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

Message: 3
Date: Tue, 13 Dec 2016 08:00:20 -0800
From: Mihai Maruseac <mihai.marus...@gmail.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: Re: [Haskell-beginners] Problem install Gtk
Message-ID:
        <caomsumj2vaic8n_+gjfuw1jnnvkhd0kew1axpekgg28cszu...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

It also runs on windows but needs proper setup before hand.

That is, it needs to be installed outside of Haskell and then you can
install the Haskell bindings.

On Tue, Dec 13, 2016 at 6:42 AM, David McBride <toa...@gmail.com> wrote:

> GTK is a linux graphics toolkit.  It does not run on windows.
>
> On Tue, Dec 13, 2016 at 8:23 AM, Arnim Fiebig <guenter.fie...@online.de>
> wrote:
>
>> The same happen on Win8.1 and another Pc with win7
>>
>>
>> 1. install 'HaskellPlatform-8.0.1-full-x86_64-setup-a'
>>   ok
>>
>> 2. copy 'gtk+-bundle_3.6.4-20130513_win64' to C:\Gtk\             ok
>>
>> 3. 'cabal install gtk'
>>                             failed
>>
>>
>> Thanks for help
>> Guenter
>>
>> _______________________________________________
>> Beginners mailing list
>> Beginners@haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>
>>
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>


-- 
Mihai Maruseac (MM)
"If you can't solve a problem, then there's an easier problem you can
solve: find it." -- George Polya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20161213/8c3bed29/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phjidiombkcgeenh.gif
Type: image/gif
Size: 8169 bytes
Desc: not available
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20161213/8c3bed29/attachment.gif>

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

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


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

End of Beginners Digest, Vol 102, Issue 3
*****************************************

Reply via email to