Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Problems with the Network package (Daniel Fischer)
2. Re: Problems with the Network package (Raphael P?bst)
3. Re: Problems with the Network package (Daniel Fischer)
4. Re: Problems with the Network package (Raphael P?bst)
5. Re: Install on "foreign" server problem (Aleksandar Dimitrov)
6. How to access non-exported function from Data.Set?
(Christoph Bussler)
7. Re: How to access non-exported function from Data.Set?
(Ozgur Akgun)
----------------------------------------------------------------------
Message: 1
Date: Wed, 1 Jun 2011 12:05:53 +0200
From: Daniel Fischer <[email protected]>
Subject: Re: [Haskell-beginners] Problems with the Network package
To: [email protected]
Message-ID: <[email protected]>
Content-Type: Text/Plain; charset="iso-8859-1"
On Wednesday 01 June 2011 11:51:02, Raphael P?bst wrote:
> Thanks for the help. As for packages, Yesod for example fails to
> install because it is trying to install network 2.3.0.2
cabal-0.8.* using version 1.8.0.2 of tha Cabal library?
------------------------------
Message: 2
Date: Wed, 1 Jun 2011 12:34:20 +0200
From: Raphael P?bst <[email protected]>
Subject: Re: [Haskell-beginners] Problems with the Network package
To: Daniel Fischer <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Good question. Ghc-pkg list gives me Cabal-1.8.0.6 and 1.10..1.0.
Ghc-pkg check tells me that cabal-1.8.0.6 is broken though because of
some dependency on Process 1.0.1.5.
It's all a bit of a mystery to me.
On 6/1/11, Daniel Fischer <[email protected]> wrote:
> On Wednesday 01 June 2011 11:51:02, Raphael P?bst wrote:
>> Thanks for the help. As for packages, Yesod for example fails to
>> install because it is trying to install network 2.3.0.2
>
> cabal-0.8.* using version 1.8.0.2 of tha Cabal library?
>
------------------------------
Message: 3
Date: Wed, 1 Jun 2011 13:03:58 +0200
From: Daniel Fischer <[email protected]>
Subject: Re: [Haskell-beginners] Problems with the Network package
To: Raphael P?bst <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: Text/Plain; charset="iso-8859-1"
On Wednesday 01 June 2011 12:34:20, Raphael P?bst wrote:
> Good question. Ghc-pkg list gives me Cabal-1.8.0.6 and 1.10..1.0.
Run
cabal --version
in the command shell, that tells you which version of cabal you have and
with which version of Cabal it was compiled.
(However, if the failure while trying to install network-2.3.0.2 was not an
ambiguous occurrence of closeFdWith, it's not the issue I suspect, and the
versions are less important [for the moment, at least].)
Anyway, it would be helpful if you ran the cabal install command with
higher verbosity - not sure if -v is enough, -v2 should be - and post the
output (to the list, or paste it on hpaste.org or similar and post a link
to it here).
> Ghc-pkg check tells me that cabal-1.8.0.6 is broken though because of
> some dependency on Process 1.0.1.5.
Uh oh, have you more than one process package?
That's bad, because process is one of the core libs, having several of
those lands you in dependency hell. Hope that there's only one version of
it in the global package-db and unregister those in the user-db.
ghc-pkg unregister --user process
(perhaps with the exact version if there are several).
That will probably complain that unregistering process-a.b.c.d will break
some packages, unregister those too [or, if there are too many, delete the
whole user-db] until ghc-pkg check doesn't report broken packages anymore,
then start reinstalling, but watch that cabal doesn't try to reinstall a
package already registered with ghc; you can check for that with
cabal install foo bar baz quux --dry-run
> It's all a bit of a mystery to me.
>
> On 6/1/11, Daniel Fischer <[email protected]> wrote:
> > On Wednesday 01 June 2011 11:51:02, Raphael P?bst wrote:
> >> Thanks for the help. As for packages, Yesod for example fails to
> >> install because it is trying to install network 2.3.0.2
Try
cabal install --constraint='network==2.3.0.3' yesod
?
> >
> > cabal-0.8.* using version 1.8.0.2 of tha Cabal library?
------------------------------
Message: 4
Date: Wed, 1 Jun 2011 13:31:03 +0200
From: Raphael P?bst <[email protected]>
Subject: Re: [Haskell-beginners] Problems with the Network package
To: Daniel Fischer <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Well it all works now, after unregistering most of the stuff in the
user package list.
And I only have one version of Process registered, so I don't know
what was wrong there. Anyway, it's working now, so I'm happy.
Thanks all for the help!
Raf
On 6/1/11, Daniel Fischer <[email protected]> wrote:
> On Wednesday 01 June 2011 12:34:20, Raphael P?bst wrote:
>> Good question. Ghc-pkg list gives me Cabal-1.8.0.6 and 1.10..1.0.
>
> Run
>
> cabal --version
>
> in the command shell, that tells you which version of cabal you have and
> with which version of Cabal it was compiled.
> (However, if the failure while trying to install network-2.3.0.2 was not an
> ambiguous occurrence of closeFdWith, it's not the issue I suspect, and the
> versions are less important [for the moment, at least].)
>
> Anyway, it would be helpful if you ran the cabal install command with
> higher verbosity - not sure if -v is enough, -v2 should be - and post the
> output (to the list, or paste it on hpaste.org or similar and post a link
> to it here).
>
>> Ghc-pkg check tells me that cabal-1.8.0.6 is broken though because of
>> some dependency on Process 1.0.1.5.
>
> Uh oh, have you more than one process package?
> That's bad, because process is one of the core libs, having several of
> those lands you in dependency hell. Hope that there's only one version of
> it in the global package-db and unregister those in the user-db.
>
> ghc-pkg unregister --user process
>
> (perhaps with the exact version if there are several).
> That will probably complain that unregistering process-a.b.c.d will break
> some packages, unregister those too [or, if there are too many, delete the
> whole user-db] until ghc-pkg check doesn't report broken packages anymore,
> then start reinstalling, but watch that cabal doesn't try to reinstall a
> package already registered with ghc; you can check for that with
>
> cabal install foo bar baz quux --dry-run
>
>> It's all a bit of a mystery to me.
>>
>> On 6/1/11, Daniel Fischer <[email protected]> wrote:
>> > On Wednesday 01 June 2011 11:51:02, Raphael P?bst wrote:
>> >> Thanks for the help. As for packages, Yesod for example fails to
>> >> install because it is trying to install network 2.3.0.2
>
> Try
>
> cabal install --constraint='network==2.3.0.3' yesod
>
> ?
>
>> >
>> > cabal-0.8.* using version 1.8.0.2 of tha Cabal library?
>
------------------------------
Message: 5
Date: Wed, 1 Jun 2011 16:42:41 +0200
From: Aleksandar Dimitrov <[email protected]>
Subject: Re: [Haskell-beginners] Install on "foreign" server problem
To: Lawrence Bottorff <[email protected]>
Cc: [email protected]
Message-ID: <20110601144241.GA2885@minsk>
Content-Type: text/plain; charset="us-ascii"
Hi Lawrence
On Sat, May 28, 2011 at 10:42:07AM -0500, Lawrence Bottorff wrote:
> I'm trying to install the binary of 7.0.3 on a Bluehost.com server where I
> have an account and ssh shell. I want to eventually run Yesod or happstack
> or some other sort of haskell on web. I've talked with their tech support
> and they're cool with it as long as it's in-place. Good. I try the
> ./configure and it errors saying things like:
>
> checking for path to top of build tree...
> utils/ghc-pwd/dist/build/tmp/ghc-pwd: /lib64/libc.so.6: version `GLIBC_2.9'
> not found (required by utils/ghc-pwd/dist/build/tmp/ghc-pwd)
> utils/ghc-pwd/dist/build/tmp/ghc-pwd: /lib64/libc.so.6: version `GLIBC_2.7'
> not found (required by utils/ghc-pwd/dist/build/tmp/ghc-pwd)
> configure: error: cannot determine current directory
>
> I'm not (nor ever was) much of a sysadmin type. Any advice?
It seems that 64-bit libc isn't installed on the host system. I'm gonna assume
it's probably some sort of *NIX box that isn't Linux, and you downloaded the
Linux version of GHC. I have no idea what bluehost.com runs. Can you issue
uname -a
on the command line and report the output?
> Actually, I'm just trying to do Web with Haskell on a server/cloud other
> than my own home box. I have a Web client and I'd like to get us off PHP.
> Any Haskell-friendly clouds/hosts to suggest?
I, unfortunately, have no idea of any specific offerings, but almost any modern
Linux system should be fine.
Note that if you don't have root access, you'll have to compile some stuff
yourself (or ask the admin to kindly install stuff for you) and then set the
LD_PATH and similar goodness, since you're most likely going to have to install
libgpm3, which isn't necessarily pre-installed on a web host. It's possible,
though, and I can even try to help you with that, because I've done it before.
Aleks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110601/d82e254e/attachment-0001.pgp>
------------------------------
Message: 6
Date: Wed, 1 Jun 2011 13:56:46 -0700
From: "Christoph Bussler" <[email protected]>
Subject: [Haskell-beginners] How to access non-exported function from
Data.Set?
To: <[email protected]>
Message-ID: <D159C004C04C4ECEBFACF06BF8422F04@REDPOWER>
Content-Type: text/plain; charset="us-ascii"
Hi,
In Data.Set there is a function splitLookup
splitLookup :: Ord a => a -> Set a -> (Set a,Maybe a,Set a)
that is not exported, but would precisely give me the functionality that I
need. Not sure why it is not exported, but is there a way to use it?
Thanks,
Christoph
--------------------------------------------------------------------------
Christoph Bussler
[email protected]
www.real-programmer.com
www.linkedin.com/in/chbussler
www.google.com/search?hl=en&q=Christoph+Bussler
www.google.com/search?hl=en&q=Christoph%20Bussler&btnI=I%27m+Feeling+Lucky
--------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110601/8238b72f/attachment-0001.htm>
------------------------------
Message: 7
Date: Wed, 1 Jun 2011 23:25:12 +0100
From: Ozgur Akgun <[email protected]>
Subject: Re: [Haskell-beginners] How to access non-exported function
from Data.Set?
To: Christoph Bussler <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
Hi Christoph,
On 1 June 2011 21:56, Christoph Bussler <[email protected]> wrote:
> splitLookup :: Ord a => a -> Set a -> (Set a,Maybe a,Set a)
>
> Not sure why it is not exported, but is there a way to use it?
>
I am afraid you'll have to define the exact same function yourself, if you
really want to use it. As you probably already know, you can copy it from:
http://hackage.haskell.org/packages/archive/containers/0.4.0.0/doc/html/src/Data-Set.html#splitLookup
I am not sure as to why it was not exported though. If you describe your use
case, maybe you can convince people to make a change, or people can suggest
you some other function which fulfils your requirements in some other way.
HTH,
Ozgur
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110601/662d32c0/attachment.htm>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 36, Issue 3
****************************************