[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN binding with Haskell

From: Christian Maeder <Christian.Maeder_at_dfki.de>
Date: Fri, 24 Oct 2008 13:13:24 +0200

just to correct a false impression. One part of my problem (point 3.
below) was a wrong hsc2hs program that was found in my PATH by accident
(that also caused
http://www.haskell.org/pipermail/cabal-devel/2008-October/003980.html)

Cheers Christian

Christian Maeder wrote:
> Hi,
>
> I've install HsSVN (version 0.3.3) using ghc-6.8.3 and Cabal-1.4.0.1,
> but it was a real pain (under i686 Linux 2.6.22.18-0.2-default #1 SMP)
>
> 1. I had to install subversion-devel-1.4.4-30 (of course)
> 2. configure went through after setting:
> export CPATH=/usr/include/apr-1:/usr/include/subversion-1
> 3. building failed with:
>
> Program error: <handle>: IO.getContents: protocol error (input contains
> non-character data - use binary I/O for binary data)
>
> because some comments in the sources (i.e. Subversion/FileSystem.hsc)
> contain funny (japanese?) characters that hsc2hs does not like. (Under
> Solaris and Mac this was no problem, though.) I used iconv to convert
> the sources and finally the included HelloWorld example went through.
>
> 4. Under Solaris, only apr-1-config and apu-1-config found the proper
> include path (so I needed to adjust the configure.ac file)
>
> 5. The file HsSVN.buildinfo.in has no final newline, so that the last
> line (containing the ld-options:) is missing in HsSVN.buildinfo after
> configure!
>
> 6. Running the examples under Solaris failed with:
> -bash-3.1$ ./HelloWorld
> Creating a repository "repos"...
> The youngest revision of the repository is 0
> Storing a file "/hello" in it...
> HelloWorld: user error (withSubversion: caught an SvnError: UnknownError
> 22: Can't set position pointer in file 'repos/db/revs/0': Invalid argument)
>
> Cheers Christian
>
> Shahzad wrote:
>> Dear Sir/Madam,
>>
>> I am doctoral student and researcher in Technical University Vienna. I
>> need to manage Subversion client and run SVN commands through
>> Haskell6.8 , and I need to make that application for ubuntu and Windows,
>> Can you guide me how to make any API for Haskell to use Subversion.
>>
>> I was thinking to use c2hs to make an interface from C++ to haskell but
>> I could not find that a solution. There is a Package HsSVN but is also
>> not working.
>>
>> Can you please guide me to the solution..
>>
>> Best Regards
>>
>> Syed
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-24 17:36:19 CEST

This is an archived mail posted to the Subversion Users mailing list.