1 |
qnikst 13/08/26 11:43:06 |
2 |
|
3 |
Added: metadata.xml file-location-0.4.5.2.ebuild ChangeLog |
4 |
Log: |
5 |
dev-haskell/file-location: initial layout |
6 |
|
7 |
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 0xEAD50D64D8D3571A!) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-haskell/file-location/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/file-location/metadata.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/file-location/metadata.xml?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: metadata.xml |
16 |
=================================================================== |
17 |
<?xml version="1.0" encoding="UTF-8"?> |
18 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 |
<pkgmetadata> |
20 |
<herd>haskell</herd> |
21 |
<maintainer> |
22 |
<email>haskell@g.o</email> |
23 |
</maintainer> |
24 |
<longdescription> |
25 |
Common debugging/error/exception functions that give file location information |
26 |
|
27 |
> $(err "OH NO!") |
28 |
> |
29 |
> main:Main main.hs:16:1 OH NO! |
30 |
|
31 |
Notice how it displays package:module file:line:character |
32 |
It exposes the functions err (error), undef (undefined), and trc (Debug.Trace.trace). All of these behave the same as their normal counterpart but also spit out a location. |
33 |
|
34 |
Here is my favorite helper, debug, which is like trace but just show the value. |
35 |
|
36 |
> debug [1,2,3] |
37 |
> |
38 |
> DEBUG: [1,2,3] |
39 |
> [1,2,3] |
40 |
|
41 |
And The Template Haskell version. |
42 |
|
43 |
> $(dbg) [1,2,3] |
44 |
> |
45 |
> DEBUG main:Main main.hs:1:3 [1,2,3] |
46 |
> [1,2,3] |
47 |
|
48 |
Also there is a version of thrwIO that gives location information |
49 |
> ($(thrwIO) $ AException) `catch` \e -> putStrLn ("Caught " ++ show (e :: AException)) |
50 |
> |
51 |
> Caught AException "main:Main test/main.hs:25:6" |
52 |
|
53 |
See module for a listing of all the functions with short descriptions, and the homepage for some more examples https://github.com/gregwebs/ErrorLocation.hs |
54 |
</longdescription> |
55 |
</pkgmetadata> |
56 |
|
57 |
|
58 |
|
59 |
1.1 dev-haskell/file-location/file-location-0.4.5.2.ebuild |
60 |
|
61 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/file-location/file-location-0.4.5.2.ebuild?rev=1.1&view=markup |
62 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/file-location/file-location-0.4.5.2.ebuild?rev=1.1&content-type=text/plain |
63 |
|
64 |
Index: file-location-0.4.5.2.ebuild |
65 |
=================================================================== |
66 |
# Copyright 1999-2013 Gentoo Foundation |
67 |
# Distributed under the terms of the GNU General Public License v2 |
68 |
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/file-location/file-location-0.4.5.2.ebuild,v 1.1 2013/08/26 11:43:06 qnikst Exp $ |
69 |
|
70 |
EAPI=5 |
71 |
|
72 |
# ebuild generated by hackport 0.3.9999 |
73 |
|
74 |
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" |
75 |
inherit haskell-cabal |
76 |
|
77 |
DESCRIPTION="common functions that show file location information" |
78 |
HOMEPAGE="https://github.com/gregwebs/FileLocation.hs" |
79 |
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" |
80 |
|
81 |
LICENSE="BSD" |
82 |
SLOT="0/${PV}" |
83 |
KEYWORDS="~amd64 ~x86" |
84 |
IUSE="" |
85 |
# tests fail: test: main:Main test/main.hs:30:5 Oh no! |
86 |
# Test suite test: FAIL |
87 |
RESTRICT="test" |
88 |
|
89 |
RDEPEND="dev-haskell/lifted-base:=[profile?] |
90 |
>=dev-haskell/transformers-0.2:=[profile?] |
91 |
<dev-haskell/transformers-0.4:=[profile?] |
92 |
>=dev-lang/ghc-6.10.4:=" |
93 |
DEPEND="${RDEPEND} |
94 |
>=dev-haskell/cabal-1.8" |
95 |
|
96 |
|
97 |
|
98 |
1.1 dev-haskell/file-location/ChangeLog |
99 |
|
100 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/file-location/ChangeLog?rev=1.1&view=markup |
101 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/file-location/ChangeLog?rev=1.1&content-type=text/plain |
102 |
|
103 |
Index: ChangeLog |
104 |
=================================================================== |
105 |
# ChangeLog for dev-haskell/file-location |
106 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
107 |
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/file-location/ChangeLog,v 1.1 2013/08/26 11:43:06 qnikst Exp $ |
108 |
|
109 |
*file-location-0.4.5.2 (26 Aug 2013) |
110 |
|
111 |
26 Aug 2013; Alexander Vershilov <qnikst@g.o> |
112 |
+file-location-0.4.5.2.ebuild, +metadata.xml: |
113 |
dev-haskell/file-location: initial layout |