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:  conduit and happstack dependence problem (Jeremy Shaw)
   2. Re:  Beginners Digest, Vol 52, Issue 16 (Gregory Guthrie)
   3. Re:  parsec problem (Tobias)
   4. Re:  parsec problem (Christian Maeder)


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

Message: 1
Date: Fri, 12 Oct 2012 15:28:08 -0500
From: Jeremy Shaw <[email protected]>
Subject: Re: [Haskell-beginners] conduit and happstack dependence
        problem
To: [email protected]
Cc: ??????? ??? <[email protected]>,   [email protected]
Message-ID:
        <CAGE_JKbv-y9Vz9+YpVVo0FXvqqJn0UpCKQZR8=66t+xpx1_...@mail.gmail.com>
Content-Type: text/plain; charset=KOI8-R

The highest version of transformers on hackage is transformers-0.3.0.0.

The darcs version of transformers is only at 0.3.1.0:

http://code.haskell.org/~ross/transformers/transformers.cabal

And even in the git version of conduits.cabal:

https://github.com/snoyberg/conduit/blob/master/conduit/conduit.cabal

the version bounds is:

 transformers             >= 0.2.2        && < 0.4

According to packdeps the only upper bounds limitation with
happstack-server at the moment is base64-bytestring:

 $ packdeps happstack-server/happstack-server.cabal
happstack-server-7.0.4: Cannot accept the following packages
base64-bytestring 1.0.0.0

I'll bump that in the near future.

- jeremy

On Fri, Oct 12, 2012 at 2:59 PM, Antoine Latter <[email protected]> wrote:
> CCing happstack mailing list.
>
> On Fri, Oct 12, 2012 at 1:52 PM, ??????? ??? <[email protected]> 
> wrote:
>> I'm using conduit to download and parsing file. Conduit depens on
>> transformers >= 0.4.
>> Now I'm going to use happstack, but happstack-server depends on transformers
>> < 0.4.
>> Is there a way to use conduit and happstack together?
>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "HAppS" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/happs?hl=en.
>



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

Message: 2
Date: Fri, 12 Oct 2012 15:28:55 -0500
From: Gregory Guthrie <[email protected]>
Subject: Re: [Haskell-beginners] Beginners Digest, Vol 52, Issue 16
To: "[email protected]" <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

I am trying to install yesod, 
But it fails and one of the failures is to install http-conduit.

So I tried to install that, and it fails, with this message:

     Building http-conduit-1.6.1.1...
     Preprocessing library http-conduit-1.6.1.1...
     <command line>: cannot satisfy -package-id 
asn1-data-0.7.1-25c9f2b3799c26151af97c0d9c79754c:
    asn1-data-0.7.1-25c9f2b3799c26151af97c0d9c79754c is unusable due to missing 
or recursive dependencies:
      base-4.5.0.0-597748f6f53a7442bcae283373264bb6 
      bytestring-0.9.2.1-df82064cddbf74693df4e042927e015e 
      cereal-0.3.5.2-b01d76d961ef4facbe3e52a7b6ccef63 
      mtl-2.1.1-87121149c5eb4fc03f06f5894ea4ac0c
      text-0.11.2.0-b2986f5478f0efa626f8ba0494ed9670
    (use -v for more information)
     Failed to install http-conduit-1.6.1.1
     cabal.exe: Error: some packages failed to install:
     http-conduit-1.6.1.1 failed during the building phase. The exception was:
     ExitFailure 1

Any hints?

I find that with each usage of cabal-install, my success rate and appreciation 
for it falls!  :-)
Each time it fails, and says to -force-reinstalls, that breaks more, etc... Not 
sure how to break out of this maze of "twisty turny passages that all look 
alike"..

Haskell-platform 2.0.0, GHCi, version 7.4.1
cabal-install version 0.14.0
using version 1.14.0 of the Cabal library
-------------------------------------------



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

Message: 3
Date: Sat, 13 Oct 2012 00:38:12 +0200
From: Tobias <[email protected]>
Subject: Re: [Haskell-beginners] parsec problem
To: "[email protected]" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

Ok, I managed it by using a modified sepBy / sepBy1:
/" ... x//s////<-////many////(//sep////>>////p//) ... "/ changed to /" 
... x//s////<-////many////(//try (sep////>>////p//)) ..."/

Regards,
Tobias/

/On 10/12/2012 07:20 PM, Tobias wrote:
> Hello,
>
> I would like to parse the input "word1 word2 word3 ." into 
> ["word1","word2","word3"] using Parsec.
>
> My code below fails with:
> /> unexpected "."//
> //> expecting letter or digit
>
> /I guess the problem is that the blank before the dot is considered as 
> belonging to the "sepBy word blank" parsing and therefore a next word 
> is expected, and it is missing.
> I would like the "sepBy word blank" parsing to stop after "word3".
> How can I do this?
> /
> //sentence :: Parser [String]//
> //sentence =  do words <- word `sepBy` blank//
> //                         blank//
> //                         oneOf ".?!"//
> //                         return words//
> //
> //word :: Parser String//
> //word = many1 (letter <|> digit) //
> //
> //blank :: Parser String//
> //blank = string " "
>
> /Regards,
> Tobias
>
>
> _______________________________________________
> 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/20121013/c0f54c90/attachment-0001.htm>

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

Message: 4
Date: Sat, 13 Oct 2012 10:51:09 +0200
From: Christian Maeder <[email protected]>
Subject: Re: [Haskell-beginners] parsec problem
To: Tobias <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Tobias,

the "proper" way is to skip white spaces after each token.
Leading white spaces are skipped only once at the beginning.

lex :: Parser a -> Parser a
lex = (<* spaces) -- skip trailing blanks

sentence = many (lex word) <* lex (oneOf ".?!")

-- finally
alltext = spaces *> many sentence

HTH Christian

Am 12.10.2012 19:20, schrieb Tobias:
> Hello,
>
> I would like to parse the input "word1 word2 word3 ." into
> ["word1","word2","word3"] using Parsec.
>
> My code below fails with:
> /> unexpected "."//
> //> expecting letter or digit
>
> /I guess the problem is that the blank before the dot is considered as
> belonging to the "sepBy word blank" parsing and therefore a next word is
> expected, and it is missing.
> I would like the "sepBy word blank" parsing to stop after "word3".
> How can I do this?
> /
> //sentence :: Parser [String]//
> //sentence =  do words <- word `sepBy` blank//
> //                         blank//
> //                         oneOf ".?!"//
> //                         return words//
> //
> //word :: Parser String//
> //word = many1 (letter <|> digit) //
> //
> //blank :: Parser String//
> //blank = string " "
>
> /Regards,
> Tobias
>
>



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

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


End of Beginners Digest, Vol 52, Issue 18
*****************************************

Reply via email to