Send Beginners mailing list submissions to
[email protected]
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
[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: 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 <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
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 <[email protected]>
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
> [email protected]
> 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 <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Sorting
Message-ID: <[email protected]>
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 <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
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 <[email protected]> wrote:
> GTK is a linux graphics toolkit. It does not run on windows.
>
> On Tue, Dec 13, 2016 at 8:23 AM, Arnim Fiebig <[email protected]>
> 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
>> [email protected]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>
>>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> 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
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 102, Issue 3
*****************************************