about summary refs log tree commit diff
path: root/ghc
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>1970-01-01 03:00:00 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-20 11:51:54 +0300
commit38bab29776950ac2364ed64195b89887717c33de (patch)
treeedaaf366a55dbe96d268019124536bc504c64e87 /ghc
chore: init HEAD master
Diffstat (limited to 'ghc')
-rw-r--r--ghc/.ghc/ghci.conf39
-rwxr-xr-xghc/@install10
2 files changed, 49 insertions, 0 deletions
diff --git a/ghc/.ghc/ghci.conf b/ghc/.ghc/ghci.conf
new file mode 100644
index 0000000..9cfcad1
--- /dev/null
+++ b/ghc/.ghc/ghci.conf
@@ -0,0 +1,39 @@
+:set -XBinaryLiterals
+:set -XFlexibleContexts
+:set -XNoMonomorphismRestriction
+
+:seti -XConstraintKinds
+:seti -XDataKinds
+:seti -XDeriveFunctor
+:seti -XFlexibleInstances
+:seti -XFunctionalDependencies
+:seti -XGADTs
+:seti -XLambdaCase
+:seti -XMagicHash
+:seti -XMultiParamTypeClasses
+:seti -XMultiWayIf
+:seti -XOverloadedLabels
+:seti -XPackageImports
+:seti -XPolyKinds
+:seti -XRankNTypes
+:seti -XScopedTypeVariables
+:seti -XStandaloneDeriving
+:seti -XTupleSections
+:seti -XTypeFamilies
+:seti -XTypeOperators
+:seti -XUndecidableInstances
+
+:set +c
+:set +m
+:set +r
+:set +s
+:set +t
+
+:set prompt      "\ESC[1;34mλ\ESC[m\STX \ESC[1;37m>\ESC[m\STX "
+:set prompt-cont "\ESC[1;34m    …\ESC[m\STX \ESC[1;37m>\ESC[m\STX "
+
+:def clear  \_ -> pure (":!clear")
+:def hoogle \x -> pure (":!hoogle --color --count=10 \"" ++ x ++ "\"")
+:def hinfo  \x -> pure (":!hoogle --color --info \""     ++ x ++ "\"")
+
+-- vim: filetype=haskell
diff --git a/ghc/@install b/ghc/@install
new file mode 100755
index 0000000..1ae2a70
--- /dev/null
+++ b/ghc/@install
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+[ ! -d "${HOME}/.ghc" ] && \
+    mkdir -p "${HOME}/.ghc"
+
+stow \
+    --target="${HOME}" \
+    --ignore="^@.*" \
+    --verbose \
+    ghc

Consider giving Nix/NixOS a try! <3