Send Beginners mailing list submissions to
        beginners@haskell.org

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
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  how more efficient read/write a  file ? ( anyzhen )
   2. Re:  apt cabal hackage (csmagic)
   3. Re:  apt cabal hackage (Antoine Latter)
   4. Re:  apt cabal hackage (csmagic)
   5. Re:  apt cabal hackage (Antoine Latter)
   6. Re:  apt cabal hackage (csmagic)


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

Message: 1
Date: Sat, 24 Sep 2011 10:04:24 +0800
From: " anyzhen " <jiangzhe...@qq.com>
Subject: [Haskell-beginners] how more efficient read/write a  file ?
To: " Beginners " <beginners@haskell.org>
Message-ID: <tencent_7ee1f3f410cae1f672e18...@qq.com>
Content-Type: text/plain; charset="iso-8859-1"

consider this :
i want load a 4G file(or some bigger file) ,and the process  data operation 
just like  010 to 101( XOR bits  ) , is it some efficient function down it ?
such  hPutStr  hPutChar is Char layer   , is exist bit layer operations?


thanks for any help 


jiangzhe...@qq.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110924/4027dbe7/attachment-0001.htm>

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

Message: 2
Date: Sat, 24 Sep 2011 09:12:53 +0530
From: csmagic <csma...@gmail.com>
Subject: Re: [Haskell-beginners] apt cabal hackage
To: beginners@haskell.org
Message-ID:
        <CAB9Cb3WdJELif311OKo=hfyeg-r9ahmf8_f0oi9fp+exk6g...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On Thu, Sep 22, 2011 at 4:20 PM, Amy de Buitl?ir <a...@nualeargais.ie> wrote:

> csmagic <csmagic <at> gmail.com> writes:
>
> >
> > Thanks Joey, AmyNow I want to go 'backwards'.For example I have
> > Language.Haskell.Exts.SyntaxI want to dig into it.  Where/How do I start?
>
> Using either Hayoo or Hoogle, search for "Language.Haskell.Exts.Syntax".
> Click on
> the results to find out more about this module (what package it's in, what
> methods it contains, etc.) Does that answer your question?
>

Trying out the graphviz package...

$ cabal list|grep -i graphviz
gives
cabal: <stdout>: invalid argument
and nothing else

But still
$ cabal install graphviz
still seems to install

What gives?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110924/8d98dbcd/attachment-0001.htm>

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

Message: 3
Date: Sat, 24 Sep 2011 00:15:04 -0500
From: Antoine Latter <aslat...@gmail.com>
Subject: Re: [Haskell-beginners] apt cabal hackage
To: csma...@gmail.com
Cc: beginners@haskell.org
Message-ID:
        <cakjsnqgupffqqudskarggcjs+ftezdpm591j1w_sisfkeuk...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Fri, Sep 23, 2011 at 10:42 PM, csmagic <csma...@gmail.com> wrote:
>
>
> On Thu, Sep 22, 2011 at 4:20 PM, Amy de Buitl?ir <a...@nualeargais.ie> wrote:
>>
>> csmagic <csmagic <at> gmail.com> writes:
>>
>> >
>> > Thanks Joey, AmyNow I want to go 'backwards'.For example I have
>> > Language.Haskell.Exts.SyntaxI want to dig into it.? Where/How do I
>> > start?
>>
>> Using either Hayoo or Hoogle, search for "Language.Haskell.Exts.Syntax".
>> Click on
>> the results to find out more about this module (what package it's in, what
>> methods it contains, etc.) Does that answer your question?
>
> Trying out the graphviz package...
>
> $ cabal list|grep -i graphviz
> gives
> cabal: <stdout>: invalid argument
> and nothing else
>

Your example works great for me. What OS are you using, and what
version of cabal?

You could also try:

> cabal list graphviz

But that doesn't give you all of the power of regular expressions.

> But still
> $ cabal install graphviz
> still seems to install
>
> What gives?



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

Message: 4
Date: Sat, 24 Sep 2011 11:13:48 +0530
From: csmagic <csma...@gmail.com>
Subject: Re: [Haskell-beginners] apt cabal hackage
To: beginners@haskell.org
Message-ID:
        <CAB9Cb3XCXiiHEf0jxFajZXN_xisvbKUkZwcnkY3L5ZOpgv=l...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On Sat, Sep 24, 2011 at 10:45 AM, Antoine Latter <aslat...@gmail.com> wrote:

> On Fri, Sep 23, 2011 at 10:42 PM, csmagic <csma...@gmail.com> wrote:
> >
> >
> > On Thu, Sep 22, 2011 at 4:20 PM, Amy de Buitl?ir <a...@nualeargais.ie>
> wrote:
> >>
> >> csmagic <csmagic <at> gmail.com> writes:
> >>
> >> >
> >> > Thanks Joey, AmyNow I want to go 'backwards'.For example I have
> >> > Language.Haskell.Exts.SyntaxI want to dig into it.  Where/How do I
> >> > start?
> >>
> >> Using either Hayoo or Hoogle, search for "Language.Haskell.Exts.Syntax".
> >> Click on
> >> the results to find out more about this module (what package it's in,
> what
> >> methods it contains, etc.) Does that answer your question?
> >
> > Trying out the graphviz package...
> >
> > $ cabal list|grep -i graphviz
> > gives
> > cabal: <stdout>: invalid argument
> > and nothing else
> >
>
> Your example works great for me. What OS are you using, and what
> version of cabal?
>
> You could also try:
>
> > cabal list graphviz
>
> But that doesn't give you all of the power of regular expressions.
>

$ cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library

[I just did a cabal update cabal. Did not do anything as far as I can see]

$ uname -rv
2.6.32-5-686 #1 SMP Tue Mar 8 21:36:00 UTC 2011

$ cat /etc/debian_version
wheezy/sid

On a related note I find a lot of libghc6-something-or-other which are all
described as dummy packages.

Is Debian not the best system to play around with Haskell?
I gather gentoo is where the most haskell development happens...




> > But still
> > $ cabal install graphviz
> > still seems to install
> >
> > What gives?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110924/25b5aa12/attachment-0001.htm>

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

Message: 5
Date: Sat, 24 Sep 2011 00:55:57 -0500
From: Antoine Latter <aslat...@gmail.com>
Subject: Re: [Haskell-beginners] apt cabal hackage
To: csma...@gmail.com
Cc: beginners@haskell.org
Message-ID:
        <CAKjSnQHSLUkSSOgDjV0nS_nszF3M7bg4CekQ=ri5epp6pjq...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Sat, Sep 24, 2011 at 12:43 AM, csmagic <csma...@gmail.com> wrote:
> On Sat, Sep 24, 2011 at 10:45 AM, Antoine Latter <aslat...@gmail.com> wrote:
>>
>> On Fri, Sep 23, 2011 at 10:42 PM, csmagic <csma...@gmail.com> wrote:
>> >
>> >
>> > On Thu, Sep 22, 2011 at 4:20 PM, Amy de Buitl?ir <a...@nualeargais.ie>
>> > wrote:
>> >>
>> >> csmagic <csmagic <at> gmail.com> writes:
>> >>
>> >> >
>> >> > Thanks Joey, AmyNow I want to go 'backwards'.For example I have
>> >> > Language.Haskell.Exts.SyntaxI want to dig into it.? Where/How do I
>> >> > start?
>> >>
>> >> Using either Hayoo or Hoogle, search for
>> >> "Language.Haskell.Exts.Syntax".
>> >> Click on
>> >> the results to find out more about this module (what package it's in,
>> >> what
>> >> methods it contains, etc.) Does that answer your question?
>> >
>> > Trying out the graphviz package...
>> >
>> > $ cabal list|grep -i graphviz
>> > gives
>> > cabal: <stdout>: invalid argument
>> > and nothing else
>> >
>>
>> Your example works great for me. What OS are you using, and what
>> version of cabal?
>>
>> You could also try:
>>
>> > cabal list graphviz
>>
>> But that doesn't give you all of the power of regular expressions.
>

My only guess is that something is odd about your terminal - I've
never seen that error message before, on linux or anywhere else.

> $ cabal --version
> cabal-install version 0.10.2
> using version 1.10.1.0 of the Cabal library
>
> [I just did a cabal update cabal. Did not do anything as far as I can see]
>
> $ uname -rv
> 2.6.32-5-686 #1 SMP Tue Mar 8 21:36:00 UTC 2011
>
> $ cat /etc/debian_version
> wheezy/sid
>
> On a related note I find a lot of libghc6-something-or-other which are all
> described as dummy packages.
>
> Is Debian not the best system to play around with Haskell?
> I gather gentoo is where the most haskell development happens...
>

I used to do Haskell development on Ubuntu - I would install the base
libraries from apt, and then use 'cabal' user installs to do the rest.
These days I work on a Mac, where I start with the Haskell Platform
installer.

There's an active Debian+Haskell group; I don't know much about gentoo
(maybe they don't advertise as much).

Sorry I couldn't be of much help with the odd error.

Antoine



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

Message: 6
Date: Sat, 24 Sep 2011 11:40:21 +0530
From: csmagic <csma...@gmail.com>
Subject: Re: [Haskell-beginners] apt cabal hackage
To: beginners@haskell.org
Message-ID:
        <cab9cb3ufjnte8ucj9ecmzw4p+pwwwj9nuakv-my8cg3t0mi...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On Sat, Sep 24, 2011 at 11:25 AM, Antoine Latter <aslat...@gmail.com> wrote:

> On Sat, Sep 24, 2011 at 12:43 AM, csmagic <csma...@gmail.com> wrote:
> > On Sat, Sep 24, 2011 at 10:45 AM, Antoine Latter <aslat...@gmail.com>
> wrote:
> >>
> >> On Fri, Sep 23, 2011 at 10:42 PM, csmagic <csma...@gmail.com> wrote:
> >> >
> >> >
> >> > On Thu, Sep 22, 2011 at 4:20 PM, Amy de Buitl?ir <a...@nualeargais.ie>
> >> > wrote:
> >> >>
> >> >> csmagic <csmagic <at> gmail.com> writes:
> >> >>
> >> >> >
> >> >> > Thanks Joey, AmyNow I want to go 'backwards'.For example I have
> >> >> > Language.Haskell.Exts.SyntaxI want to dig into it.  Where/How do I
> >> >> > start?
> >> >>
> >> >> Using either Hayoo or Hoogle, search for
> >> >> "Language.Haskell.Exts.Syntax".
> >> >> Click on
> >> >> the results to find out more about this module (what package it's in,
> >> >> what
> >> >> methods it contains, etc.) Does that answer your question?
> >> >
> >> > Trying out the graphviz package...
> >> >
> >> > $ cabal list|grep -i graphviz
> >> > gives
> >> > cabal: <stdout>: invalid argument
> >> > and nothing else
> >> >
> >>
> >> Your example works great for me. What OS are you using, and what
> >> version of cabal?
> >>
> >> You could also try:
> >>
> >> > cabal list graphviz
> >>
> >> But that doesn't give you all of the power of regular expressions.
> >
>
> My only guess is that something is odd about your terminal - I've
> never seen that error message before, on linux or anywhere else.
>

It seems to be happening elsewhere also:
http://hackage.haskell.org/trac/hackage/ticket/856

Also its more likely a locale issue than a terminal one because I get the
same error when I replace the pipe with a redirection to a file.

And yet my locales dont seem to be odd in any way (I can see)

$ locale
LANG=en_US
LANGUAGE=
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=


$ locale -a
C
C.UTF-8
en_US
en_US.iso88591
en_US.iso885915
en_US.utf8
POSIX



> > $ cabal --version
> > cabal-install version 0.10.2
> > using version 1.10.1.0 of the Cabal library
> >
> > [I just did a cabal update cabal. Did not do anything as far as I can
> see]
> >
> > $ uname -rv
> > 2.6.32-5-686 #1 SMP Tue Mar 8 21:36:00 UTC 2011
> >
> > $ cat /etc/debian_version
> > wheezy/sid
> >
> > On a related note I find a lot of libghc6-something-or-other which are
> all
> > described as dummy packages.
> >
> > Is Debian not the best system to play around with Haskell?
> > I gather gentoo is where the most haskell development happens...
> >
>
> I used to do Haskell development on Ubuntu - I would install the base
> libraries from apt, and then use 'cabal' user installs to do the rest.
> These days I work on a Mac, where I start with the Haskell Platform
> installer.
>
> There's an active Debian+Haskell group; I don't know much about gentoo
> (maybe they don't advertise as much).
>
> Sorry I couldn't be of much help with the odd error.
>
> Antoine
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110924/cc34ebaf/attachment.htm>

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

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners


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

Reply via email to