Saturday, October 30, 2004

Haskell GD linking example

Demonstration of linking the GD Graphics Library (in C) with some Haskell code, using the tool C->Haskell c2hs.
begin 644 haskell-gd.tar.bz2
M0EIH.3%!629368B6U`@``X5_TLZ0`)!\]__?/^_>RO__W_H`(`$`0```"%`$
MO=CF;F-3S9J-7IX))$U,T@4;4\IYIH%'B0;4/2-I#U-`--#30T\IY0"4IHQ2
M;4>U--JC]4]0]0``]0`-&@`````D2""3U3&"GI/4&GJ`VHTT````:```-J2G
MI">*>H!IY1H'J-```!Z@&@#30`>H))3*&(F>J,TC$T:&@``!HT````!0%-OT
M.ETT6,93%8NC,D\<S(30H0/9"%*R1NF[RC5JFEB2=K=(E8]0Y6P,E+-8E5):
M$FD)R7PWC^%U.L=SXK52<?OJZ/]<DZ(D2EVYXL)7/Q"P3[)5CAUP*@\@K8#T
MN^/+)%*L1F"MDPNORCKD/<;HS_<N^:H2%62T1F-H\>1+MZP[8RVZ6NE2;XT"
MK^S5"M#>/J;1<Y+:&M*0G=<9$N\,>*%,!>ZLU9!8O#'&C<Y;4F_,PL'N4T'&
MEN!9?GJD8_"B<0+X4%:HSB)1<K6/F'7I1;IR6[>6F28Q;._&O63<D;S2^##`
MY1"N&8SHYZT)#K$#E26@VM1<3+=P<;%LM'!1C;>T>58][)EP%Z&+?&+:3)45
M=5D)&L)E9O.I9HIQ(T@7.)_1CT9>3QJ,5IB*BD/L<<?;]*/5,XGL(E$E7TUG
MLGO>F$%&Z@HNN#"1<DN.5R`(`S%")<@,AJD;7K/15"KQ>S^QSK[AA4:"Q*VU
MW8DHJ1+V62=-9NHXETZM0UEMOE*^6%82L"W#8N2<TKG952FA42G.5$7-*KG$
M%*WW'MG]'>3J0JW3V"E+K*P32<Z1B-!XP@UFHD=P@P&P>9\@Y#I@/S*:^5+%
M<ZX;CJ(I62)A?\LW4^M[?TY\NE!V6JOBD04TGLTYLV'"6T9UMM'X*&O[7D6'
M>B&LN.WI<*!J/VQ<[$@W#-TRY#'*6B=W+P4-?X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