Skip to content

Instantly share code, notes, and snippets.

17:58:55 autrilla | nedbat: but I wanted to make it C-like. What I did is more C-like.
17:59:31 Wooble | autrilla: it's slower, which isn't C-like. It's also uglier, which probably is.
yac@linux-1e2q % vim python3.4/codecs.py
--------------------------------------------------------------------------------
/usr/lib64
yac@linux-1e2q % cd python3.4
--------------------------------------------------------------------------------
/usr/lib64/python3.4
yac@linux-1e2q % vim codecs.py
Traceback (most recent call last):
File "encodings/__init__.py", line 31, in <module>
import codecs
@jan-matejka
jan-matejka / find-opensuse-packaged-haskell-deps.sh
Last active August 29, 2015 14:21
Find openSUSE packaged haskell dependencies
cd <your haskell project.git or so>
zypper se $(cabal install \
--dependencies-only --enable-tests -j10 --dry-run \
| tail -n+3 \
| sed 's/-[0-9].*//' \
| sed 's/^/ghc-/'
) \
| awk /-devel/ \
| cut -f 2 -d "|"
yac@rainbowdash % cvs ci -m "net-mail/git-mailz removal. Moving to dev-vcs/..."
/var/cvsroot/gentoo-x86/net-mail/autorespond/Manifest,v <-- autorespond/Manifest
new revision: 1.24; previous revision: 1.23
/var/cvsroot/gentoo-x86/net-mail/bincimap/Manifest,v <-- bincimap/Manifest
new revision: 1.74; previous revision: 1.73
/var/cvsroot/gentoo-x86/net-mail/checkpassword-pam/Manifest,v <-- checkpassword-pam/Manifest
new revision: 1.24; previous revision: 1.23
/var/cvsroot/gentoo-x86/net-mail/courierpassd/Manifest,v <-- courierpassd/Manifest
new revision: 1.8; previous revision: 1.7
/var/cvsroot/gentoo-x86/net-mail/git-mailz/ChangeLog,v <-- git-mailz/ChangeLog
---
GET / HTTP/1.1
Host: build.opensuse.org
HTTP/1.1 401 Unauthorized
Date: Thu, 19 Mar 2015 22:58:16 GMT
Server: Apache/2.2.12 (Linux/SUSE)
Strict-Transport-Security: max-age=31536000
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Configuring HsSyck-0.52...
Building HsSyck-0.52...
Preprocessing library HsSyck-0.52...
running dist/dist-sandbox-82ddaa05/build/Data/Yaml/Syck_hsc_make failed (exit code 127)
command was: dist/dist-sandbox-82ddaa05/build/Data/Yaml/Syck_hsc_make >dist/dist-sandbox-82ddaa05/build/Data/Yaml/Syck.hs
src/Ycdn/Command/AddFile.hs:31:10:
No instance for (Traversable (Either ParseException))
arising from a use of `traverse'
Possible fix:
add an instance declaration for
(Traversable (Either ParseException))
In a stmt of a 'do' block:
x <- traverse (connectPostgreSQL . psqlConnInfo) y
In the expression:
do { y <- readYcdnConfig;
yac@rainbowdash % diff -burN haskell-cabal.eclass /var/lib/cportage/portage/eclass/haskell-cabal.eclass
--- haskell-cabal.eclass 2015-02-15 00:17:27.534199770 +0100
+++ /var/lib/cportage/portage/eclass/haskell-cabal.eclass 2015-01-02 11:01:09.000000000 +0100
@@ -1,6 +1,6 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.34 2012/09/27 16:35:41 axs Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.48 2015/01/02 09:35:02 slyfox Exp $
Loading package aeson-0.7.0.6 ... linking ... done.
ghc: mmap 73728 bytes at (nil): Operation not permitted
ghc: Try specifying an address with +RTS -xm<addr> -RTS
cabal: Error: some packages failed to install:
postgresql-simple-0.4.9.0 failed during the building phase. The exception was:
ExitFailure 1
yac@beefcake % cat kek
Building os-release-0.1.0...
Preprocessing library os-release-0.1.0...
[1 of 1] Compiling System.OsRelease ( library/System/OsRelease.hs, dist/build/System/OsRelease.o )
library/System/OsRelease.hs:25:37:
Couldn't match type `OsReleaseKey' with `Char'
When using functional dependencies to combine
Stream s Identity OsReleaseKey,
arising from the type signature for