diff options
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 |
