unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 02/24] gnu: Add ghc-paths.
@ 2015-04-06 16:38 Federico Beffa
  2015-04-08  8:01 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Federico Beffa @ 2015-04-06 16:38 UTC (permalink / raw)
  To: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 5 bytes --]

Fede

[-- Attachment #2: 0002-gnu-Add-ghc-paths.patch --]
[-- Type: text/x-diff, Size: 1397 bytes --]

From 3191ee610727c3d0bbf7849fd7bd5c5ec20b6fc4 Mon Sep 17 00:00:00 2001
From: Federico Beffa <beffa@fbengineering.ch>
Date: Thu, 26 Mar 2015 17:55:23 +0100
Subject: [PATCH 02/24] gnu: Add ghc-paths.

* gnu/packages/haskell.scm: (ghc-paths): New variable.
---
 gnu/packages/haskell.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index d02c5f9..eacfa2d 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -253,4 +253,27 @@ by Mark P Jones, in 'Advanced School of Functional Programming', 1995
 http://web.cecs.pdx.edu/~mpj/pubs/springschool.html.")
   (license bsd-3)))
 
+(define-public ghc-paths
+  (package
+    (name "ghc-paths")
+    (version "0.1.0.9")
+    (outputs '("out" "doc"))
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "http://hackage.haskell.org/package/ghc-paths/ghc-paths-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0ibrr1dxa35xx20cpp8jzgfak1rdmy344dfwq4vlq013c6w8z9mg"))))
+    (build-system haskell-build-system)
+    (home-page "https://github.com/simonmar/ghc-paths")
+    (synopsis
+     "Knowledge of GHC's installation directories")
+    (description
+     "Knowledge of GHC's installation directories.")
+    (license bsd-3)))
+
 ;;; haskell.scm ends here
-- 
2.2.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 02/24] gnu: Add ghc-paths.
  2015-04-06 16:38 [PATCH 02/24] gnu: Add ghc-paths Federico Beffa
@ 2015-04-08  8:01 ` Ludovic Courtès
  2015-04-08 11:44   ` Federico Beffa
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2015-04-08  8:01 UTC (permalink / raw)
  To: Federico Beffa; +Cc: Guix-devel

Federico Beffa <beffa@ieee.org> skribis:

> From 3191ee610727c3d0bbf7849fd7bd5c5ec20b6fc4 Mon Sep 17 00:00:00 2001
> From: Federico Beffa <beffa@fbengineering.ch>
> Date: Thu, 26 Mar 2015 17:55:23 +0100
> Subject: [PATCH 02/24] gnu: Add ghc-paths.
>
> * gnu/packages/haskell.scm: (ghc-paths): New variable.

[...]

> +    (synopsis
> +     "Knowledge of GHC's installation directories")
> +    (description
> +     "Knowledge of GHC's installation directories.")

Please expound a little bit.  Otherwise OK.

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 02/24] gnu: Add ghc-paths.
  2015-04-08  8:01 ` Ludovic Courtès
@ 2015-04-08 11:44   ` Federico Beffa
  2015-04-08 12:10     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Federico Beffa @ 2015-04-08 11:44 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Guix-devel

On Wed, Apr 8, 2015 at 10:01 AM, Ludovic Courtès <ludo@gnu.org> wrote:
>> +    (synopsis
>> +     "Knowledge of GHC's installation directories")
>> +    (description
>> +     "Knowledge of GHC's installation directories.")
>
> Please expound a little bit.  Otherwise OK.

Thanks for reviewing all of these!

The problem with this and some other libraries is that the library
doesn't have an official home-page (apart from a source repository
which doesn't include anything other than the source). The description
is taken one-to-one from the Cabal file and I don't really know how I
can expand the description.

The Cabal file of some other libraries like, e.g., ghc-network, give
an, IMO, too detailed description (sometimes even with a code
snippet):

...
description:
  This package provides a low-level networking interface.
  .
  In network-2.6 the @Network.URI@ module was split off into its own
  package, network-uri-2.6. If you're using the @Network.URI@ module
  you can automatically get it from the right package by adding this
  to your .cabal file:
  .
  > flag network-uri
  >   description: Get Network.URI from the network-uri package
  >   default: True
  >
  > library
  >   -- ...
  >   if flag(network-uri)
  >     build-depends: network-uri >= 2.6, network >= 2.6
  >   else
  >     build-depends: network-uri < 2.6, network < 2.6
  .
  That is, get the module from either network < 2.6 or from
  network-uri >= 2.6.
...

... and they also only have a source repository with no high level
information. For this reason I did cut the description to the,
sometimes very short, high level piece.

I hope it's fine to keep the concise description for these.

Regards,
Fede

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 02/24] gnu: Add ghc-paths.
  2015-04-08 11:44   ` Federico Beffa
@ 2015-04-08 12:10     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2015-04-08 12:10 UTC (permalink / raw)
  To: Federico Beffa; +Cc: Guix-devel

Federico Beffa <beffa@ieee.org> skribis:

> On Wed, Apr 8, 2015 at 10:01 AM, Ludovic Courtès <ludo@gnu.org> wrote:
>>> +    (synopsis
>>> +     "Knowledge of GHC's installation directories")
>>> +    (description
>>> +     "Knowledge of GHC's installation directories.")
>>
>> Please expound a little bit.  Otherwise OK.
>
> Thanks for reviewing all of these!
>
> The problem with this and some other libraries is that the library
> doesn't have an official home-page (apart from a source repository
> which doesn't include anything other than the source). The description
> is taken one-to-one from the Cabal file and I don't really know how I
> can expand the description.

Often there’s a README or manual that gives a better overview, but yeah,
I don’t mean that you should spend another 10 hours on this.  ;-)  So if
you find a paragraph that’s clearer, that’s nice, otherwise it’s OK.

> The Cabal file of some other libraries like, e.g., ghc-network, give
> an, IMO, too detailed description (sometimes even with a code
> snippet):

Agreed, something like this one is overly detailed.

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-08 12:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-06 16:38 [PATCH 02/24] gnu: Add ghc-paths Federico Beffa
2015-04-08  8:01 ` Ludovic Courtès
2015-04-08 11:44   ` Federico Beffa
2015-04-08 12:10     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).