ghc: fix ghci config
authorJulien Moutinho <julm+julm-nix@sourcephile.fr>
Mon, 8 Nov 2021 05:34:01 +0000 (06:34 +0100)
committerJulien Moutinho <julm+julm-nix@sourcephile.fr>
Mon, 8 Nov 2021 05:34:01 +0000 (06:34 +0100)
homes/softwares/ghc.nix

index 1b9bfa7e35b1a9128177d9dc5d3034f3fe4c8dc3..7d2311cf14c51715babc33a1081e88f6a04f7124 100644 (file)
@@ -1,6 +1,10 @@
 {
 home.file.".ghci".text = ''
-  :set prompt "\SOH\ESC[93m\STXλ\SOH\ESC[34;1m\STX>\SOH\ESC[0;48;05;233m\STX "
+  -- Custom prompt breaks ob-haskell:
+  -- https://github.com/aspiers/orgmode/blob/5121209baa4e0e9532b521ec997b66bb8be31460/lisp/ob-haskell.el#L121-L124
+  -- :set prompt "\SOH\ESC[93m\STXλ\SOH\ESC[34;1m\STX>\SOH\ESC[0;48;05;233m\STX "
+
+  -- Reversing errors breaks ghcid's --reverse-errors·
   -- :set -freverse-errors
 '';
 }