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:  reverse [1..] (Kim-Ee Yeoh)
   2.  Tests that use sample files in Cabal (Federico Mastellone)
   3. Re:  Build HTTP package error (Emmanuel Touzery)
   4. Re:  Build HTTP package error (Emmanuel Touzery)


----------------------------------------------------------------------

Message: 1
Date: Tue, 18 Dec 2012 23:34:24 +0700
From: Kim-Ee Yeoh <[email protected]>
Subject: Re: [Haskell-beginners] reverse [1..]
To: Tom Davie <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID:
        <CAPY+ZdRaOcQOVfVPh7Ripkim9baQSzqjGofs7FsgT=u67m5...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Emanuel: I was trying to build infinite list from -inf to +inf.

Bob: What would you expect the number after -inf to be?

Wait a minute, let's just talk about the head of the list. What type is the
list element? Int? Integer? If Int, there's minBound :: Bounded Int => Int.
If Integer, no such instance exists!

So perhaps you want [minBound .. maxBound] :: [Int]?

-- Kim-Ee



On Tue, Dec 18, 2012 at 10:16 PM, Tom Davie <[email protected]> wrote:

>
> On 18 Dec 2012, at 14:35, Emanuel Koczwara <[email protected]>
> wrote:
>
> > Hi,
> >
> > Dnia 2012-12-18, wto o godzinie 20:30 +0600, Alexander _ pisze:
> >> Hello,
> >>
> >>
> >>
> >> Here you try to reverse infinite list. What do you expect to get?
> >>
> >
> >  I was trying to build infinite list from -inf to +inf.
>
> What would you expect the number after -inf to be?
>
> Bob
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20121218/81027e45/attachment-0001.htm>

------------------------------

Message: 2
Date: Tue, 18 Dec 2012 14:31:32 -0300
From: Federico Mastellone <[email protected]>
Subject: [Haskell-beginners] Tests that use sample files in Cabal
To: Beginners Haskell Mailinglist <[email protected]>
Message-ID:
        <CAHnhREvyDG6po4QVBc+DKP1Z3tn36iWHRO=+zquqw67cjqf...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi List,

I'm trying to do my testing with HUnit and Cabal and I created a Test-Suite
entry that runs when I do "cabal test" inside my project folder.
My problem is that I want to add a second test case that needs to read a
sample database file, I cannot include the file with Cabal's data-dir and
data-files properties because it's only supported at the package level,
this huge file will be always installed when doing "cabal install". Is
there a standard way to access these files in a portable way? Any ideas?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20121218/cf98f1b8/attachment-0001.htm>

------------------------------

Message: 3
Date: Wed, 19 Dec 2012 08:35:02 +0100
From: Emmanuel Touzery <[email protected]>
Subject: Re: [Haskell-beginners] Build HTTP package error
To: "[email protected]" <[email protected]>
Message-ID:
        <CAC42Rem6ZaAig1F+=3cuQn3RjGdGE=QY+nCdxCX8__WY=3b...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello,

 which is your GHC version? On the page for that package it is written that
it was successfully built for GHC-7.6. Maybe your GHC version is too old?
Otherwise I don't have a clue.

http://hackage.haskell.org/package/HTTP-4000.2.6

Emmanuel


On Tue, Dec 18, 2012 at 2:58 PM, Alexander _
<[email protected]>wrote:

> Hello,
>
> I try to install HTTP package. I make:
>
> cabal install HTTP and got error:
>
> [ 1 of 18] Compiling Network.HTTP.Base64 ( Network/HTTP/Base64.hs,
> dist/build/Network/HTTP/Base64.o )
> [ 2 of 18] Compiling Network.HTTP.MD5Aux ( Network/HTTP/MD5Aux.hs,
> dist/build/Network/HTTP/MD5Aux.o )
> [ 3 of 18] Compiling Paths_HTTP ( dist/build/autogen/Paths_HTTP.hs,
> dist/build/Paths_HTTP.o )
>
> dist/build/autogen/Paths_HTTP.hs:21:13: Not in scope: `catch'
>
> dist/build/autogen/Paths_HTTP.hs:22:13: Not in scope: `catch'
>
> dist/build/autogen/Paths_HTTP.hs:23:14: Not in scope: `catch'
>
> dist/build/autogen/Paths_HTTP.hs:24:17: Not in scope: `catch'
> cabal: Error: some packages failed to install:
> HTTP-4000.2.6 failed during the building phase. The exception was:
> ExitFailure 1
>
> How can i install it correctly?
>
> Thank you.
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20121219/e47705a4/attachment-0001.htm>

------------------------------

Message: 4
Date: Wed, 19 Dec 2012 08:36:58 +0100
From: Emmanuel Touzery <[email protected]>
Subject: Re: [Haskell-beginners] Build HTTP package error
To: "[email protected]" <[email protected]>
Message-ID:
        <cac42ren8-x2dqarjct+nekajkyxewnwqfdhrdapzg+yhr0t...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

One more thing... For my HTTP needs I've been using without problems
Network.HTTP.Conduit:
http://hackage.haskell.org/packages/archive/http-conduit/1.2.1/doc/html/Network-HTTP-Conduit.html

but I didn't research in which ways these two packages differ.

Emmanuel


On Wed, Dec 19, 2012 at 8:35 AM, Emmanuel Touzery <[email protected]>wrote:

> Hello,
>
>  which is your GHC version? On the page for that package it is written
> that it was successfully built for GHC-7.6. Maybe your GHC version is too
> old? Otherwise I don't have a clue.
>
> http://hackage.haskell.org/package/HTTP-4000.2.6
>
> Emmanuel
>
>
> On Tue, Dec 18, 2012 at 2:58 PM, Alexander _ <
> [email protected]> wrote:
>
>> Hello,
>>
>> I try to install HTTP package. I make:
>>
>> cabal install HTTP and got error:
>>
>> [ 1 of 18] Compiling Network.HTTP.Base64 ( Network/HTTP/Base64.hs,
>> dist/build/Network/HTTP/Base64.o )
>> [ 2 of 18] Compiling Network.HTTP.MD5Aux ( Network/HTTP/MD5Aux.hs,
>> dist/build/Network/HTTP/MD5Aux.o )
>> [ 3 of 18] Compiling Paths_HTTP ( dist/build/autogen/Paths_HTTP.hs,
>> dist/build/Paths_HTTP.o )
>>
>> dist/build/autogen/Paths_HTTP.hs:21:13: Not in scope: `catch'
>>
>> dist/build/autogen/Paths_HTTP.hs:22:13: Not in scope: `catch'
>>
>> dist/build/autogen/Paths_HTTP.hs:23:14: Not in scope: `catch'
>>
>> dist/build/autogen/Paths_HTTP.hs:24:17: Not in scope: `catch'
>> cabal: Error: some packages failed to install:
>> HTTP-4000.2.6 failed during the building phase. The exception was:
>> ExitFailure 1
>>
>> How can i install it correctly?
>>
>> Thank you.
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20121219/36409b99/attachment-0001.htm>

------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 54, Issue 27
*****************************************

Reply via email to