ghc: remove cabal; erc: add carp checker

This commit is contained in:
2018-02-28 16:20:02 +01:00
parent 068b802807
commit 6098ba11cd
4 changed files with 8 additions and 196 deletions

View File

@@ -10,7 +10,6 @@ e:
cp erc ~/.erc cp erc ~/.erc
ghc: ghc:
cp -r cabal/config ~/.cabal/config
cp ghci ~/.ghci cp ghci ~/.ghci
git: git:

View File

@@ -1,189 +0,0 @@
-- This is the configuration file for the 'cabal' command line tool.
-- The available configuration options are listed below.
-- Some of them have default values listed.
-- Lines (like this one) beginning with '--' are comments.
-- Be careful with spaces and indentation because they are
-- used to indicate layout for nested sections.
-- Cabal library version: 1.24.0.0
-- cabal-install version: 1.24.0.0
repository hackage.haskell.org
url: http://hackage.haskell.org/
-- secure: False
-- root-keys:
-- key-threshold:
-- default-user-config:
-- require-sandbox: False
-- ignore-sandbox: False
-- ignore-expiry: False
-- http-transport:
remote-repo-cache: /Users/sidharta/.cabal/packages
-- local-repo:
-- logs-dir:
world-file: /Users/sidharta/.cabal/world
-- verbose: 1
-- compiler: ghc
-- with-compiler:
-- with-hc-pkg:
-- program-prefix:
-- program-suffix:
-- library-vanilla: True
-- library-profiling:
-- shared:
-- executable-dynamic: False
-- profiling:
-- executable-profiling:
-- profiling-detail:
-- library-profiling-detail:
-- optimization: True
-- debug-info: False
-- library-for-ghci:
-- split-objs: False
-- executable-stripping: True
-- library-stripping: True
-- configure-option:
-- user-install: True
-- package-db:
-- flags:
-- extra-include-dirs:
-- extra-lib-dirs:
-- extra-framework-dirs:
extra-prog-path: /Users/sidharta/.cabal/bin
-- tests: False
-- coverage: False
-- library-coverage:
-- allow-newer: False
-- exact-configuration: False
-- benchmarks: False
-- relocatable: False
-- cabal-lib-version:
-- constraint:
-- preference:
-- solver: choose
-- documentation: False
-- doc-index-file: $datadir/doc/$arch-$os-$compiler/index.html
-- max-backjumps: 2000
-- reorder-goals: False
-- shadow-installed-packages: False
-- strong-flags: False
-- reinstall: False
-- avoid-reinstalls: False
-- force-reinstalls: False
-- upgrade-dependencies: False
-- root-cmd:
-- symlink-bindir:
build-summary: /Users/sidharta/.cabal/logs/build.log
-- build-log:
remote-build-reporting: anonymous
-- report-planning-failure: False
-- one-shot: False
-- run-tests:
jobs: $ncpus
-- offline: False
-- username:
-- password:
-- password-command:
-- builddir:
haddock
-- keep-temp-files: False
-- hoogle: False
-- html: False
-- html-location:
-- for-hackage: False
-- executables: False
-- tests: False
-- benchmarks: False
-- all:
-- internal: False
-- css:
-- hyperlink-source: False
-- hscolour-css:
-- contents-location:
install-dirs user
-- prefix: /Users/sidharta/.cabal
-- bindir: $prefix/bin
-- libdir: $prefix/lib
-- libsubdir: $abi/$libname
-- libexecdir: $prefix/libexec
-- datadir: $prefix/share
-- datasubdir: $abi/$pkgid
-- docdir: $datadir/doc/$abi/$pkgid
-- htmldir: $docdir/html
-- haddockdir: $htmldir
-- sysconfdir: $prefix/etc
install-dirs global
-- prefix: /usr/local
-- bindir: $prefix/bin
-- libdir: $prefix/lib
-- libsubdir: $abi/$libname
-- libexecdir: $prefix/libexec
-- datadir: $prefix/share
-- datasubdir: $abi/$pkgid
-- docdir: $datadir/doc/$abi/$pkgid
-- htmldir: $docdir/html
-- haddockdir: $htmldir
-- sysconfdir: $prefix/etc
program-locations
-- alex-location:
-- ar-location:
-- c2hs-location:
-- cpphs-location:
-- gcc-location:
-- ghc-location:
-- ghc-pkg-location:
-- ghcjs-location:
-- ghcjs-pkg-location:
-- greencard-location:
-- haddock-location:
-- happy-location:
-- haskell-suite-location:
-- haskell-suite-pkg-location:
-- hmake-location:
-- hpc-location:
-- hsc2hs-location:
-- hscolour-location:
-- jhc-location:
-- ld-location:
-- lhc-location:
-- lhc-pkg-location:
-- pkg-config-location:
-- strip-location:
-- tar-location:
-- uhc-location:
program-default-options
-- alex-options:
-- ar-options:
-- c2hs-options:
-- cpphs-options:
-- gcc-options:
-- ghc-options:
-- ghc-pkg-options:
-- ghcjs-options:
-- ghcjs-pkg-options:
-- greencard-options:
-- haddock-options:
-- happy-options:
-- haskell-suite-options:
-- haskell-suite-pkg-options:
-- hmake-options:
-- hpc-options:
-- hsc2hs-options:
-- hscolour-options:
-- jhc-options:
-- ld-options:
-- lhc-options:
-- lhc-pkg-options:
-- pkg-config-options:
-- strip-options:
-- tar-options:
-- uhc-options:

13
erc
View File

@@ -45,17 +45,20 @@ meta_commands["carp"] = function()
result = handle:read("*a") result = handle:read("*a")
handle:close() handle:close()
if result.len == 0 then return end if result == "" then
message("Checks passed!")
return
end
if starts(result, "Invalid path") then if starts(result, "Invalid path") then
message("File not yet saved to disk!") message("File not yet saved to disk!")
return return
end end
split = result:gmatch(":") f, l, c, msg = string.match(result, "([^:]+):(%d+):(%d+) (.-)[\r\n].*")
if split[0] == file then if f == file then
move(tonumber(split[1]), tonumber(split[2])) move(tonumber(l)-1, tonumber(c))
message(table.concat(table.unpack(split, 3), ":")) message(msg)
end end
end end

1
zshrc
View File

@@ -182,7 +182,6 @@ pinfo(){
save_dotfiles(){ save_dotfiles(){
local DOTPATH=~/Documents/Code/Github/.dotfiles/ local DOTPATH=~/Documents/Code/Github/.dotfiles/
cp -r ~/.cabal/config ${DOTPATH}cabal/
cp -r ~/.scripts ${DOTPATH} cp -r ~/.scripts ${DOTPATH}
cp ~/.bash_profile ${DOTPATH}bash_profile cp ~/.bash_profile ${DOTPATH}bash_profile
cp ~/.cardinalrc ${DOTPATH}cardinalrc cp ~/.cardinalrc ${DOTPATH}cardinalrc