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:  apt cabal hackage (Antoine Latter)
   2. Re:  apt cabal hackage (csmagic)
   3. Re:  apt cabal hackage (Brandon Allbery)
   4. Re:  apt cabal hackage (csmagic)
   5. Re:  how more efficient read/write a file ? (Benjamin Edwards)


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

Message: 1
Date: Sat, 24 Sep 2011 01:46:43 -0500
From: Antoine Latter <[email protected]>
Subject: Re: [Haskell-beginners] apt cabal hackage
To: [email protected]
Cc: [email protected]
Message-ID:
        <CAKjSnQHGkXiuox9JRYs-mr8ufB4pX0iXUrK9iHGy=y3egjh...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Sat, Sep 24, 2011 at 1:10 AM, csmagic <[email protected]> wrote:
>
> 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=
>
>

I would expect a unicode locale to look something like this:

http://www.madboa.com/geek/utf8/

So I'm guessing something is not set-up right for unicode output, and
at least one of the Cabal package descriptions includes unicode
output.

> $ 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
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>



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

Message: 2
Date: Sat, 24 Sep 2011 12:33:30 +0530
From: csmagic <[email protected]>
Subject: Re: [Haskell-beginners] apt cabal hackage
To: [email protected]
Message-ID:
        <cab9cb3vkytdd-i0cb2hgogx0xarsj1vgfbgvyoxpvsdkdz3...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On Sat, Sep 24, 2011 at 12:16 PM, Antoine Latter <[email protected]> wrote:

> On Sat, Sep 24, 2011 at 1:10 AM, csmagic <[email protected]> wrote:
> >
> > 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=
> >
> >
>
> I would expect a unicode locale to look something like this:
>
> http://www.madboa.com/geek/utf8/
>
> So I'm guessing something is not set-up right for unicode output, and
> at least one of the Cabal package descriptions includes unicode
> output.
>

Yeah thats it:

$ export LANG=en_US.UTF-8
$ cabal list |grep -i graphviz
* graphviz
    Synopsis: Bindings to Graphviz for graph visualisation.
    Homepage: http://projects.haskell.org/graphviz/
    Synopsis: Generate graphviz-code from Haskell-code.
    Homepage: http://www.github.com/finnsson/hs2graphviz
    Synopsis: A library for the analysis and creation of Graphviz DOT files
    Synopsis: Convert GHC profiles into GraphViz's dot format
    Synopsis: Generates graphviz file of scons dependency information
    Synopsis: Visualize live Haskell data structures using vacuum, graphviz
and
    Synopsis: Visualize live Haskell data structures using vacuum, graphviz
and

$ export LANG=en_US
$ cabal list |grep -i graphviz
cabal: <stdout>: invalid argument
$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110924/4a763a30/attachment-0001.htm>

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

Message: 3
Date: Sat, 24 Sep 2011 04:23:18 -0400
From: Brandon Allbery <[email protected]>
Subject: Re: [Haskell-beginners] apt cabal hackage
To: [email protected]
Cc: [email protected]
Message-ID:
        <cakfcl4wmqvyhv9obfwlzr7phjm7baso6nxaq4dfczd+cphm...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Sat, Sep 24, 2011 at 01:43, csmagic <[email protected]> wrote:

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


That just means you've upgraded from a time when there were a bunch of
separate packages that have since been merged.  The dummy packages contain
nothing but dependencies on the new ones; it should be safe to remove them
at this point, and I think apt may have an option to identify and remove
them automatically but it's safest to verify the list it comes up with, just
in case.  (I'm on the Mac now, so can't easily check.)

-- 
brandon s allbery                                      [email protected]
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110924/3f6a657f/attachment-0001.htm>

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

Message: 4
Date: Sat, 24 Sep 2011 14:26:24 +0530
From: csmagic <[email protected]>
Subject: Re: [Haskell-beginners] apt cabal hackage
To: [email protected]
Message-ID:
        <cab9cb3u_+gzlfy50zerprb8seopky+gr_aet13m4r+p05qx...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On Sat, Sep 24, 2011 at 12:33 PM, csmagic <[email protected]> wrote:

>
>
> On Sat, Sep 24, 2011 at 12:16 PM, Antoine Latter <[email protected]>wrote:
>
>> On Sat, Sep 24, 2011 at 1:10 AM, csmagic <[email protected]> wrote:
>> >
>> > 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=
>> >
>> >
>>
>> I would expect a unicode locale to look something like this:
>>
>> http://www.madboa.com/geek/utf8/
>>
>> So I'm guessing something is not set-up right for unicode output, and
>> at least one of the Cabal package descriptions includes unicode
>> output.
>>
>
> Yeah thats it:
>

<snipped>

Now with cabal working a little better I see that I have a cabal installed
uniplate
And now I also find a uniplate in the debian apt repos
How do I uninstall the cabal one and switch to the apt one?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110924/5f4fdd56/attachment-0001.htm>

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

Message: 5
Date: Sat, 24 Sep 2011 10:01:39 +0100
From: Benjamin Edwards <[email protected]>
Subject: Re: [Haskell-beginners] how more efficient read/write a file
        ?
To: anyzhen <[email protected]>
Cc: Beginners <[email protected]>
Message-ID:
        <CAN6k4nhqd-xbj1Ajy=s_E8p1sw0px57=iyvyf7uwody4adj...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

You should look up bytestring and friends on hackage.

If it is something quite simple you can use the lazy variants and provided
that you don't try to hold onto the input you should get nice constant space
without trying too hard.

I recommend the early chapters on IO in real world haskell if you want more
info on lazy IO.
On 24 Sep 2011 03:06, "anyzhen" <[email protected]> wrote:
> 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
>
>
> [email protected]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110924/f8d34b67/attachment-0001.htm>

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

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


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

Reply via email to