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. WinRT and Haskell (AbdulSattar Mohammed)
2. Re: WinRT and Haskell (Antoine Latter)
3. Re: WinRT and Haskell (Antoine Latter)
4. Re: Beginners Digest, Vol 43, Issue 4 (Gregory Guthrie)
5. Programming GTK ([email protected])
----------------------------------------------------------------------
Message: 1
Date: Thu, 5 Jan 2012 16:42:38 +0530
From: AbdulSattar Mohammed <[email protected]>
Subject: [Haskell-beginners] WinRT and Haskell
To: [email protected]
Message-ID:
<ca+mxqh_gtr-hm8rpkfzekkmyt-7iouz2vc-ogn-jswj1hgx...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
I suppose this should go into the GUI mailing list, but it is filled with
spam. So, WinRT does not depend on the .NET Framework. C++ applications can
directly compile to x86 and be able to use WinRT. Do we have a room for
Haskell development there?
--
Warm Regards,
AbdulSattar Mohammed
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20120105/f4c407bd/attachment-0001.htm>
------------------------------
Message: 2
Date: Thu, 5 Jan 2012 08:41:43 -0600
From: Antoine Latter <[email protected]>
Subject: Re: [Haskell-beginners] WinRT and Haskell
To: AbdulSattar Mohammed <[email protected]>
Cc: [email protected]
Message-ID:
<CAKjSnQFbot=at06uwgub5qtebhxn5_nawy6unrpjlyaewvm...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Thu, Jan 5, 2012 at 5:12 AM, AbdulSattar Mohammed
<[email protected]> wrote:
> I suppose this should go into the GUI mailing list, but it is filled with
> spam. So, WinRT does not depend on the .NET Framework. C++ applications can
> directly compile to x86 and be able to use WinRT. Do we have a room for
> Haskell development there?
>
>From what I understand, WinRT is a set of COM libraries - C++ can
directly compile to it because the MS C++ compiler has special
extensions to handle the COM resources in the library.
There is a COM library for Haskell:
http://hackage.haskell.org/package/com
But I've never used it.
The API is encoded in a special meta-data format, which is then used
by C++, .NET and Javascript to create the language-specific APIs - it
might be possible to generate Haskell bindings to the COM components
from this metadata.
Antoine
------------------------------
Message: 3
Date: Thu, 5 Jan 2012 09:59:04 -0600
From: Antoine Latter <[email protected]>
Subject: Re: [Haskell-beginners] WinRT and Haskell
To: AbdulSattar Mohammed <[email protected]>
Cc: Beginners Haskell <[email protected]>, haskell mailing list
<[email protected]>
Message-ID:
<cakjsnqehm3udozpdpjx568mnk+cabyj-gjbjjyvud8bzect...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Thu, Jan 5, 2012 at 9:55 AM, AbdulSattar Mohammed
<[email protected]> wrote:
> WinRT has a concept of projections that expose its API. Microsoft has
> implemented projections for?Native (C and C++), HTML/Javascript and .NET
> (from Miguel de Caza's WinRT demystified
> post:?http://tirania.org/blog/archive/2011/Sep-15.html). There's no mention
> of creating your own projections (or I have seen none). I don't see any
> reason why we can't create our own projections. If it's possible a Haskell
> projection could really help.
>
Yep, that's what I was thinking of.
I'm pretty sure the C/C++ projections rely on compiler extensions for
the MS C/C++ compiler, so I don't think we could use those directly
from Haskell.
Antoine
>
> On Thu, Jan 5, 2012 at 8:11 PM, Antoine Latter <[email protected]> wrote:
>>
>> On Thu, Jan 5, 2012 at 5:12 AM, AbdulSattar Mohammed
>> <[email protected]> wrote:
>> > I suppose this should go into the GUI mailing list, but it is filled
>> > with
>> > spam. So, WinRT does not depend on the .NET Framework. C++ applications
>> > can
>> > directly compile to x86 and be able to use WinRT. Do we have a room for
>> > Haskell development there?
>> >
>>
>> From what I understand, WinRT is a set of COM libraries - C++ can
>> directly compile to it because the MS C++ compiler has special
>> extensions to handle the COM resources in the library.
>>
>> There is a COM library for Haskell:
>>
>> http://hackage.haskell.org/package/com
>>
>> But I've never used it.
>>
>> The API is encoded in a special meta-data format, which is then used
>> by C++, .NET and Javascript to create the language-specific APIs - it
>> might be possible to generate Haskell bindings to the COM components
>> from this metadata.
>>
>> Antoine
>
>
>
>
> --
> Warm Regards,
>
> AbdulSattar Mohammed
------------------------------
Message: 4
Date: Thu, 5 Jan 2012 14:41:10 -0600
From: Gregory Guthrie <[email protected]>
Subject: Re: [Haskell-beginners] Beginners Digest, Vol 43, Issue 4
To: "[email protected]" <[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="us-ascii"
Thanks - I did try a cabal install xxx" for the missing packages, a few seemed
to succeed, a few failed, and now I get a longer list of overall failures! :-)
...
There are problems in package scion-0.1.0.9:
dependency "AttoJson-0.5.10-4932e72997280d8c2e35b4aca3328284" doesn't exist
dependency "binary-0.5.0.2-72c84eaab351d41e936261d8d5d416f5" doesn't exist
dependency "list-tries-0.4.1-a2fcbc51b309eb5aade37b40c6ef166e" doesn't exist
There are problems in package bytestring-show-0.3.4:
dependency "binary-0.5.0.2-72c84eaab351d41e936261d8d5d416f5" doesn't exist
There are problems in package carray-0.1.5:
dependency "binary-0.5.0.2-72c84eaab351d41e936261d8d5d416f5" doesn't exist
dependency "ix-shapable-0.1.0-68747ed518a0145d47f8095a08e0bcbb" doesn't exist
...
The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
warp-0.4.6.3
tagsoup-0.12.3
simple-sendfile-0.2.0
blaze-builder-enumerator-0.2.0.3
scion-0.1.0.10
aeson-0.3.2.11
hashable-1.1.2.1
blaze-textual-0.2.0.4
double-conversion-0.2.0.1
derive-2.5.4
hoogle-4.2.6
warp-0.4.3
wai-0.4.1
simple-sendfile-0.1.2
http-types-0.6.5.1
case-insensitive-0.3.0.1
blaze-builder-enumerator-0.2.0.2
bmp-1.1.2.1
scion-0.1.0.9
bytestring-show-0.3.4
carray-0.1.5
unordered-containers-0.1.4.2
I tried an install (reinstall?) of the things it lists as missing, and
generally they report "already installed". For example;
>cabal install AttoJson
Resolving dependencies...
No packages to be installed. All the requested packages are already installed.
If you want to reinstall anyway then use the --reinstall flag.
(same for binary, list-tries, ix-shapable, ...)
>ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.3
Some things do seem to resolve after a few iterations through re-installations,
but others seem stuck, and overall the process seems like a mess.
> What is the remedy (is there a simple remedy?) if "ghc-pkg check" reports
> something amiss?
>
> In this case, the simple remedy is to reinstall the packages which the error
> messages say do
> not exist (blaze-builder, hashable, AttoJson) and then reinstall any packages
> you want to use
> which depend on them.
>
> -Brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20120105/b1bdda17/attachment-0001.htm>
------------------------------
Message: 5
Date: Fri, 06 Jan 2012 09:45:03 +0100
From: [email protected]
Subject: [Haskell-beginners] Programming GTK
To: [email protected]
Message-ID:
<20120106094503.horde.3e1pxev4cn9pbrspr_2m...@webmail.caesar.elte.hu>
Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes
Hello!
I am writing a turtle graphics program in Haskell. Now, I am working
on the GUI (Gtk2HS). I am a newbie, I have never programmed event
driven systems.
I have a Button, and when it is clicked the code written in a a
TextView is drawn in a DrawingArea. There are some problems: when
"Expose event" happens (I dont really know, if I use the right words,
but I mean, when another window is in focus, or another window comes
before the turtle graphics window etc.) my drawing disappears (I know,
it is the normal behaviour). I would like to redraw it, but I dont
know, how.
I have a function with events...
connectGui gui =
do
onDestroy (mainWin gui) mainQuit
onClicked (btn gui) (drawProgram gui)
afterActivateLeaf (quitbtn gui) (widgetDestroy (mainWin gui))
(where gui is a record, containing all the GUI elements, such as the buttons)
...but the drawProgram function draws everything, and if I add the
"onExpose" with the same drawing function, everything is redrawn
although the Button was never clicked before.
So I would like to modify the code:
-if the button was already clicked and redraw is needed, then it
should be done
-if the button was never clicked, then there must be no redraw
Could you tell me, how can I do this?
Gabre
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 43, Issue 8
****************************************