[Haskell-beginners] Cannot Show Table

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Fri Jul 26 15:56:47 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26/07/13 14:52, Mateusz Kowalczyk wrote:
> On 26/07/13 14:42, Guenter Fiebig wrote:
>> 
>> Hello,
>> 
>> me, I am a very beginner. I build a GUI with Glade containing an
>> input- and an output table as well as two buttons. My target is
>> to take the user-input  from the input table, process it and put
>> the result to the output table. My first problem is to display
>> the content from the input table for control. With "   onClicked
>> inButton (putStr "Hello, World!")   " haskell works fine without
>> errors. With "  onClicked inButton (???   inTable)   " I do not
>> find the right command to display within Prelude.
>> 
>> Thanks for help, Guenter
>> 
>> 
>> inButton <- builderGetObject builder castToButton "button1"; 
>> outButton <- builderGetObject builder castToButton "button2"; 
>> inTable <- builderGetObject builder castToTable "table1";
>> 
>> --onClicked inButton (putStr "Hello, World!"); --0nly for
>> testing onClicked inButton (??? inTable);
>> 

> Hello. If you can can up with the type of the function, you can try
> to find it with http://www.haskell.org/hoogle/ .
> 
> I actually have a comment regarding your code style. You should
> know that you can replace
> 
> do {x <- foo; y <- bar; z <- baz;}
> 
> With do x <- foo y <- bar z <- baz
> 
> The second form is far nicer to look at. The first form is pretty
> much only useful when you want multiple expressions on a single
> line.
> 

Apologies, my settings got messed up and the message went off
encrypted. See above for content.
- -- 
Mateusz K.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJR8oAfAAoJEM1mucMq2pqXtJMP/imEfUyT2IUPTSRy8WAET8+G
Kt5fPfHDnPWt0rqNQp3pLXVEuhd3t66xRMQbL7btzTu34rukq0AS8s71GpJDrtpC
u3n0oVp3pypH77Hs3cRnbfqJ4l0Mf86BI3oofWtt+/SCrFty66O62TdrwQF9U5Ap
0k97Jqy6aUd/2YCg3GAI+hKmEYQSLR15KqRT7QaJKxOIDbChl2QeAIcZyS25D6vq
4g9zclY2q5mKSmpZMo31abNkvMYpXszdgFYDHZUdALYI9UGexbzqHRye37xi5Rt6
Uak0Lj5R1fdLsUO/CiJBu4SgR8jwVwRgcXlSPfZzzO2gZHOQ/Z0BL3sCuDc0VOIy
PshO+8WVqMPnYOOOymuksRnTeayNW6UbzdsBmgSBHIA5KrFOe8CuBm8DlJmiMRT3
PpfROUXDaNPCw8a5tUDHOxStm2PLzgfoQenrjGgVOb1mbQcS7sg4BeWO9VM4nH8j
zAdZ0YZxi1HIAjyDVTwSGpDAowaxp+cVZcbbtU3B+ILLv8U8FRG2ItCuj/72RbKo
1gXpSqaAL5m2n0Y7knhUEo8D6S1904VQTK5efTzwQ7A8o/H2AUNQ/Tm6+7dJfaL0
SHhLhvjzvaDv2LnP+J+L8fxRyspRdmaAw3PwYEEo/Td4ysxVDZ8nPIDbA4+8fHDz
bL6iJ8k9bT99oAzrnYnH
=agHt
-----END PGP SIGNATURE-----




More information about the Beginners mailing list