Re: [Haskell-cafe] Loading bitmap with xlib

2011-02-02 Thread Francesco Mazzoli
Conrad Parker conrad at metadecks.org writes:

 
 On 31 January 2011 21:40, Francesco Mazzoli f at mazzo.li wrote:
  Francesco Mazzoli f at mazzo.li writes:
 
  At the end I gave up and I wrote the function myself:
 
  http://hpaste.org/43464/readbitmapfile
 
 
 cool ... the listed maintainer for the Xlib bindings is
 libraries at haskell.org. Perhaps you could prepare a patch and send it
 there? (does anyone know if there is an actual maintainer?)
 
 Conrad.
 
I will send a patch, but I'm sure there must be a reason behind the
fact that those functions were not included, even if I can't see it.

Francesco.




___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Loading bitmap with xlib

2011-02-02 Thread Brandon S Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2/2/11 04:03 , Francesco Mazzoli wrote:
 Conrad Parker conrad at metadecks.org writes:
 On 31 January 2011 21:40, Francesco Mazzoli f at mazzo.li wrote:
 Francesco Mazzoli f at mazzo.li writes:
 At the end I gave up and I wrote the function myself:
 http://hpaste.org/43464/readbitmapfile

 cool ... the listed maintainer for the Xlib bindings is
 libraries at haskell.org. Perhaps you could prepare a patch and send it
 there? (does anyone know if there is an actual maintainer?)

 I will send a patch, but I'm sure there must be a reason behind the
 fact that those functions were not included, even if I can't see it.

Pretty much what the comment says.  Graphics.X11 was never really a complete
set of bindings, just what people needed at the time.  The Extras stuff in
there was driven by xmonad development, for example (and named so because
originally it was a separate library before it got folded in, so the module
names were difficult to change while maintaining compatibility).  Dealing
with structs in the FFI is painful enough that I can easily imagine someone
saying we don't need those, let someone else figure it out --- which you
have done.  Patch away.

- -- 
brandon s. allbery [linux,solaris,freebsd,perl]  allb...@kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university  KF8NH
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1Jq9cACgkQIn7hlCsL25XaJgCfc+CCngSmZlL9JOeZ21vZwkBO
BHkAn128z1dH2entJKEfH6pKJ2Y7qW4w
=LOMj
-END PGP SIGNATURE-

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Loading bitmap with xlib

2011-01-31 Thread Francesco Mazzoli
Francesco Mazzoli f at mazzo.li writes:

At the end I gave up and I wrote the function myself:

http://hpaste.org/43464/readbitmapfile


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Loading bitmap with xlib

2011-01-31 Thread Conrad Parker
On 31 January 2011 21:40, Francesco Mazzoli f...@mazzo.li wrote:
 Francesco Mazzoli f at mazzo.li writes:

 At the end I gave up and I wrote the function myself:

 http://hpaste.org/43464/readbitmapfile


cool ... the listed maintainer for the Xlib bindings is
librar...@haskell.org. Perhaps you could prepare a patch and send it
there? (does anyone know if there is an actual maintainer?)

Conrad.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Loading bitmap with xlib

2011-01-29 Thread Francesco Mazzoli
I am trying to load a bitmap and display it with the Xlib bindings, but I wasn't
able to find a way.
The C Xlib functions would be XReadBitmapFile() of XReadBitmapFileData() to read
the data, but it seems that those functions haven't been included in the haskell
bindings.
From
http://hackage.haskell.org/packages/archive/X11/latest/doc/html/src/Graphics-X11-Xlib-Misc.html:

-- XCreateBitmapFromData omitted (awkward looking type)
-- XReadBitmapFileData omitted (awkward looking type)

Does anybody know how to do that?


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe