Custom Query (152 matches)


Show under each result:

Results (16 - 18 of 152)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Ticket Resolution Summary Owner Reporter
#1103 fixed Not in scope: type constructor or class `CUInt' somebody guest

Reported by guest, 10 years ago.


I have made a package for getting and installing Gtk2HS from darcs (gtk2hs-darcs), on Arch Linux. Someone is reporting to me this:

usr/bin/ghc +RTS -RTS -split-objs -c gstreamer/Media/Streaming/GStreamer/Core/GObjectHierarchy.hs -o gstreamer/Media/Streaming/GStreamer/Core/GObjectHierarchy.o -O -fffi -igstreamer -package-conf package.conf.inplace -hide-all-packages -ignore-package gstreamer -package base -package haskell98 -package mtl- -package bytestring- -package glib- -package-name gstreamer- '-#include<gstreamer/hsgstreamer.h>' -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I.

Not in scope: type constructor or class `CUInt'
make[1]: *** [gstreamer/Media/Streaming/GStreamer/Core/GObjectHierarchy.o] Fehler 1
rm soegtk/Graphics/SOE/Gtk.hs svgcairo/Graphics/Rendering/Cairo/SVG.hs
make[1]: Leaving directory `/home/haawda/abs/gtk2hs-darcs/src/gtk2hs'
make: *** [all] Fehler 2
==> FEHLER: Build fehlgeschlagen.
Breche ab ...

And I responded him with:

I think I may know what is going on, but I just can't believe no developer of gtk2hs is having gstreamer, and a 32 bits system. ;-)

gtk2hs is using c2hs, to make a .hs file from .chs, by consulting C headers files.
choose to import only CULong, because on the author system (which must have 64 bits), this is what the C file header return. But because you have 32 bits (correct me if I am wrong), your C header file return a 32 bit value, so CUInt must be imported too.

So you would have to make a new clean install, but stop the system after darcs got src installed.

Then edit in gstreamer/Media/Streaming/GStreamer/Core/GObjectHierarchy.chs
to remove '(CULong)' on the following line:
import Foreign.C.Types (CULong)
that way, it will import all the types, CUInt included. Or just make it '(CULong,CUInt)'.

I am new to Arch, new to Haskell, and new to Gtk2HS, so I may be out of track however.

Not sure I am Ok, and a developer could verify if there is other files like this. The package can be found

#1104 duplicate CULong -> CUInt needed in Gstreamer chs modules to build on 32-bit system. somebody guest

Reported by guest, 10 years ago.


Only CULong is declared in the files, but c2hs seems to generate references to CUInt.

I'm having the problem on 32-bit Ubuntu. I don't recall hitting any glitches when I compiled it on my 64-bit Ubuntu machine.

My fix: I just added CUInt to the imports. Diff attached.

#1105 fixed please complete the entry completion implementation axel guest

Reported by guest, 10 years ago.


I'm having a lot of trouble getting entry completion working, as my little program in shows. Could you please update the "entry completion" section of the tutorial found at ? It would help me a lot! thanks --Jacques

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Note: See TracQuery for help on using queries.