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. Re:  can't install hackage package (Andres Loeh)
   2. Re:  Literate Haskell - capturing output (Brent Yorgey)
   3. Re:  Literate Haskell - capturing output (Kim-Ee Yeoh)
   4. Re:  can't install hackage package (Emmanuel Touzery)
   5. Re:  cabal install error: (Illegal instance declaration for
      `StrictByteString String') (Brent Yorgey)


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

Message: 1
Date: Mon, 21 Jan 2013 22:13:52 +0100
From: Andres Loeh <m...@andres-loeh.de>
Subject: Re: [Haskell-beginners] can't install hackage package
To: Emmanuel Touzery <etouz...@gmail.com>
Cc: "beginners@haskell.org" <beginners@haskell.org>
Message-ID:
        <caljd_v47rhhhyhn_gp5knov_rrnpcbggrv16t1eje0w0ud+...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

> $ ghc-pkg list ghc
> /usr/lib64/ghc-7.4.1/package.conf.d
> /home/emmanuel/.ghc/x86_64-linux-7.4.1/package.conf.d

Aha. Is there something like a ghc-ghc package available on Fedora?
Perhaps you need a ghc-ghc-dev as well, I don't know. I'm somewhat
surprised that these aren't installed by default: strictly speaking,
the HP contains GHC itself, and installing the HP should install GHC
with all the core libraries.

Cabal is confused here because "ghc" is a package internal to GHC
which isn't available on Hackage, so if it's not installed together
with GHC, then Cabal has absolutely no info about it. Nevertheless, it
should quit with a meaningful message.

Cheers,
  Andres



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

Message: 2
Date: Mon, 21 Jan 2013 16:18:31 -0500
From: Brent Yorgey <byor...@seas.upenn.edu>
Subject: Re: [Haskell-beginners] Literate Haskell - capturing output
To: beginners@haskell.org
Message-ID: <20130121211831.ga26...@seas.upenn.edu>
Content-Type: text/plain; charset=us-ascii

On Thu, Jan 17, 2013 at 08:00:43PM +0100, Martin Drautzburg wrote:
> Hello all,
> 
> I am using literate haskell quite a lot (otherwise I don't understand my own 
> code). This works fine for the code as such. But when I give an example 
> usage, 
> I run code snippets in ghci and copy&paste into the main document/program, 
> which turns them into "text" (and not code).
> 
> When I make changes to the program these examples tend to no longer reflect 
> the actual program.
> 
> Is there a way to automatically run examples and include them in the .lhs 
> file, preferably with the haskell prompt and everything?

This sounds nice but I don't know of any such thing.  It shouldn't be
too bad to parse a literate Haskell file with haskell-src-exts,
process some of the literate comments, and then write it back out.
Unfortunately I do not know of a nice way to capture ghci output.  You
can find an extremely hacky solution in BlogLiterately, much of which
was copied from the lhs2TeX source:

  
http://hub.darcs.net/byorgey/BlogLiterately/browse/src/Text/BlogLiterately/Ghci.hs

-Brent



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

Message: 3
Date: Tue, 22 Jan 2013 04:22:13 +0700
From: Kim-Ee Yeoh <k...@atamo.com>
Subject: Re: [Haskell-beginners] Literate Haskell - capturing output
To: Brent Yorgey <byor...@seas.upenn.edu>
Cc: "beginners@haskell.org" <beginners@haskell.org>
Message-ID:
        <capy+zdqnkdrsxtufoy5x9kcq+d-n-zjcfhdkja-efazfosn...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On Tue, Jan 22, 2013 at 4:18 AM, Brent Yorgey <byor...@seas.upenn.edu>wrote:

> Unfortunately I do not know of a nice way to capture ghci output.


Many of us use an emacs workflow (ghci inside an emacs shell) so output
automatically gets captured in a buffer.

-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130122/0dcd3291/attachment-0001.htm>

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

Message: 4
Date: Mon, 21 Jan 2013 22:25:56 +0100
From: Emmanuel Touzery <etouz...@gmail.com>
Subject: Re: [Haskell-beginners] can't install hackage package
To: "beginners@haskell.org" <beginners@haskell.org>
Message-ID:
        <cac42remum70uoxb_23yjprv0jp6ucgdlskijbhnrnxp9o0a...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

bingo...
i had to install the "ghc-ghc" and "ghc-ghc-devel" packages (at first I
installed only "ghc-ghc" and that wasn't enough". Now it's building and I'm
pretty sure it will go through.

Thank God for this mailing list, I could never find this out on my own.
Thank you!

Emmanuel


On Mon, Jan 21, 2013 at 10:13 PM, Andres Loeh <m...@andres-loeh.de> wrote:

> > $ ghc-pkg list ghc
> > /usr/lib64/ghc-7.4.1/package.conf.d
> > /home/emmanuel/.ghc/x86_64-linux-7.4.1/package.conf.d
>
> Aha. Is there something like a ghc-ghc package available on Fedora?
> Perhaps you need a ghc-ghc-dev as well, I don't know. I'm somewhat
> surprised that these aren't installed by default: strictly speaking,
> the HP contains GHC itself, and installing the HP should install GHC
> with all the core libraries.
>
> Cabal is confused here because "ghc" is a package internal to GHC
> which isn't available on Hackage, so if it's not installed together
> with GHC, then Cabal has absolutely no info about it. Nevertheless, it
> should quit with a meaningful message.
>
> Cheers,
>   Andres
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130121/77bd7eec/attachment-0001.htm>

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

Message: 5
Date: Mon, 21 Jan 2013 16:26:13 -0500
From: Brent Yorgey <byor...@seas.upenn.edu>
Subject: Re: [Haskell-beginners] cabal install error: (Illegal
        instance declaration for `StrictByteString String')
To: beginners@haskell.org
Message-ID: <20130121212613.gb26...@seas.upenn.edu>
Content-Type: text/plain; charset=us-ascii

It looks like the bytestring-class package has not been updated in a
long time (since 2009) and does not compile under the latest versions
of GHC.

-Brent

On Mon, Jan 21, 2013 at 08:43:17PM +0100, miro wrote:
> Hi, please,....I'm trying to install one package
> (neo4j-haskell-http-client) and below is the error I'm getting. Pls.
> any ideas how can I fix that?
> 
> 
> ---------------
> 
> 1 of 1] Compiling Data.ByteString.Class ( Data/ByteString/Class.hs,
> dist/build/Data/ByteString/Class.o )
> 
> Data/ByteString/Class.hs:39:10:
>     Illegal instance declaration for `StrictByteString String'
>       (All instance types must be of the form (T a1 ... an)
>        where a1 ... an are *distinct type variables*,
>        and each type variable appears at most once in the instance head.
>        Use -XFlexibleInstances if you want to disable this.)
>     In the instance declaration for `StrictByteString String'
> 
> Data/ByteString/Class.hs:55:10:
>     Illegal instance declaration for `LazyByteString String'
>       (All instance types must be of the form (T a1 ... an)
>        where a1 ... an are *distinct type variables*,
>        and each type variable appears at most once in the instance head.
>        Use -XFlexibleInstances if you want to disable this.)
>     In the instance declaration for `LazyByteString String'
> Updating documentation index /Users/miro/Library/Haskell/doc/index.html
> cabal: Error: some packages failed to install:
> bytestring-class-0.0.0 failed during the building phase. The exception was:
> ExitFailure 1
> neo4j-haskell-0.4.1 depends on bytestring-class-0.0.0 which failed to
> install.
> 
> ---------------
> 
> cheers,
> m.

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




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

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


End of Beginners Digest, Vol 55, Issue 24
*****************************************

Reply via email to