Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/juhp/haskal

a unix shell written in haskell
https://github.com/juhp/haskal

Last synced: 17 days ago
JSON representation

a unix shell written in haskell

Awesome Lists containing this project

README

        

haskal is the haskell shell.

here is a basic configuration file for
the shell:

{-# LANGUAGE NoMonomorphismRestriction #-}
module Config (config) where
import Haskal.ConfigAPI as API
import Text.PrettyPrint.HughesPJ as PP

config :: Config
config = defaultConfig
{ prompt = mkPrompt [ user, at, host, API.colon
, currentDir, API.rangle, s' ]
, dir = "~/.haskal"
, verbose = False
} where s' = return $ PP.text " "

Put this in ~/.haskal/Config.hs and run `haskal'.

see src/Haskal/ConfigAPI.hs for available features. the
file src/config_stub includes the basic stub that is
included in every configuration and it shows the imports
given to you.

improvements welcome.