forked from jsoo1/guix-channel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ghc-optparse-generic.scm
62 lines (58 loc) · 2.37 KB
/
ghc-optparse-generic.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
(define-module (ghc-optparse-generic)
#:use-module (gnu packages haskell-xyz)
#:use-module (guix build-system haskell)
#:use-module (guix download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:export (ghc-optparse-generic))
(define ghc-only
(package
(name "ghc-only")
(version "0.1")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/Only/Only-"
version
".tar.gz"))
(sha256
(base32
"0rdj3a629fk2vp121jq8mf2smkblrz5w3cxhlsyx6my2x29s2ymb"))))
(build-system haskell-build-system)
(home-page
"http://hackage.haskell.org/package/Only")
(synopsis
"The 1-tuple type or single-value \"collection\"")
(description
"This package provides a canonical anonymous 1-tuple type missing from Haskell for attaching typeclass instances. . NOTE: There is also the </package/OneTuple OneTuple package> which by using a boxed @data@-type provides a 1-tuple type which has laziness properties which are more faithful to the ones of Haskell's native tuples; whereas the primary purpose of 'Only' is to provide the traditionally so named type-wrapper for attaching typeclass instances.")
(license license:bsd-3)))
(define ghc-optparse-generic
(package
(name "ghc-optparse-generic")
(version "1.3.0")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/optparse-generic/optparse-generic-"
version
".tar.gz"))
(sha256
(base32
"13rr3hq26dpmbami8vb6d1ig9ywk6jia22sp5dkp6jkfc1c9k4l0"))))
(build-system haskell-build-system)
(inputs
`(("ghc-system-filepath" ,ghc-system-filepath)
("ghc-only" ,ghc-only)
("ghc-optparse-applicative" ,ghc-optparse-applicative)
("ghc-void" ,ghc-void)
("ghc-semigroups" ,ghc-semigroups)))
(home-page
"http://hackage.haskell.org/package/optparse-generic")
(synopsis
"Auto-generate a command-line parser for your datatype")
(description
"This library auto-generates an optparse-applicative-compatible Parser from any data type that derives the Generic interface.
See the documentation in \"Options.Generic\" for an example of how to use this library")
(license license:bsd-3)))