h4sh |
Abouth4sh provides a set of Haskell List functions as normal unix shell commands. This allows us to use Haskell in shell scripts transparently. Each program is generated from the function's type. The following types are supported: a -> a a -> [a] [a] -> a [a] -> Int [a] -> [a] [[a]] -> [a] a -> [a] -> [a] a -> [a] -> [Int] Int -> [a] -> [a] [a] -> [a] -> [a] (a -> a) -> a -> a (a -> a) -> a -> [a] (a -> a) -> [a] -> [a] (a -> a) -> [a] -> a (a -> Bool) -> [a] -> [a] (a -> a -> a) -> [a] -> a (a -> Maybe (a, a)) -> a -> [a]
The supported functions include:
Higher order functions use runtime evaluation, allowing arbitrary Haskell code to be passed to, e.g. map and filter. Examplecons "str" f | take 4 | map sort.reverse | hd | i | filter '== "str"' HowtoA list of handy one liners for h4sh. Get h4sh
Project Activity |