diff options
| author | Michal Idziorek <m.i@gmx.at> | 2022-05-18 13:45:30 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2022-05-18 13:45:30 +0200 |
| commit | b596f4066644e8c4f432b753425aa9fbcf21a256 (patch) | |
| tree | 7c470fa0d3ed138182d69db81095f6705632757f /haskell | |
| parent | b34841d7890dd48d0a4b81bc775f5d369bd22719 (diff) | |
some tuning
Diffstat (limited to 'haskell')
| -rw-r--r-- | haskell/dot-ghci | 21 | ||||
| -rw-r--r-- | haskell/dot-haskeline | 4 |
2 files changed, 25 insertions, 0 deletions
diff --git a/haskell/dot-ghci b/haskell/dot-ghci new file mode 100644 index 0000000..a4f7e1d --- /dev/null +++ b/haskell/dot-ghci @@ -0,0 +1,21 @@ +import qualified Data.Text as T +import qualified Data.List as L + +:seti -XOverloadedStrings + +:set prompt "\ESC[0;36m\STX%s\n\ESC[0;34m\STXλ> \ESC[m\STX" +:set prompt-cont "\ESC[0;33m\STX|> \ESC[m\STX" + +:{ +dotGHCI_myPrint :: (Show a) => a -> IO () +dotGHCI_myPrint a = putStrLn $ "\n\ESC[0;33m\STX" <> show a <> "\ESC[m\STX" +:} + +:seti -interactive-print dotGHCI_myPrint + +-- :def hoogle \s -> return $ ":! hoogle --count=15 \"" ++ s ++ "\"" + +:set +t +:set +m +:set +s + diff --git a/haskell/dot-haskeline b/haskell/dot-haskeline new file mode 100644 index 0000000..ab1f04e --- /dev/null +++ b/haskell/dot-haskeline @@ -0,0 +1,4 @@ +maxHistorySize: Nothing +historyDuplicates: IgnoreConsecutive +completionPromptLimit: Just 250 +editMode: Vi |
