Skip to content

Commit

Permalink
Shellish -> Shelly
Browse files Browse the repository at this point in the history
  • Loading branch information
gregwebs committed Mar 2, 2012
1 parent 84d8202 commit 38c48f4
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 53 deletions.
8 changes: 4 additions & 4 deletions Shellish.hs → Shelly.hs
Expand Up @@ -6,10 +6,10 @@
-- this module is (unlike standard Haskell filesystem functionality)
-- thread-safe: each ShIO maintains its own environment and its own working
-- directory.
module Shellish
module Shelly
(
-- * Entering ShIO.
ShIO, shellish, sub, silently, verbosely
ShIO, shelly, sub, silently, verbosely

-- * Modifying and querying environment.
, setenv, getenv, cd, chdir, pwd
Expand Down Expand Up @@ -284,8 +284,8 @@ sub a = do
-- inherited from the current process-wide values. Any subsequent changes in
-- processwide working directory or environment are not reflected in the
-- running ShIO.
shellish :: MonadIO m => ShIO a -> m a
shellish a = do
shelly :: MonadIO m => ShIO a -> m a
shelly a = do
env <- liftIO $ getEnvironment
dir <- liftIO $ getCurrentDirectory
let def = St { sCode = 0
Expand Down
47 changes: 0 additions & 47 deletions shellish.cabal

This file was deleted.

47 changes: 47 additions & 0 deletions shelly.cabal
@@ -0,0 +1,47 @@
Name: shelly

Version: 0.3.0
Synopsis: shell-like (systems) programming in Haskell

Description: Shelly is a package provides a single module for convenient
systems programming in Haskell, similar in spirit to POSIX
shells.
.
* Shelly is aimed at getting things done rather than
being a demonstration of elegance.
.
* Shelly maintains its own environment, making it thread-safe.
.
These are in contrast to HSH. Elegance in HSH comes from polymorphic input and output.
If you frequently want a different data type than Text from running a system command, you may want to use HSH.
.
Shelly is a fork of Shellish that features low memory usage and fixes a handle draining bug.

Homepage: http://github.com/gregwebs/shelly
License: BSD3
License-file: LICENSE
Author: Petr Rockai, Greg Weber
Maintainer: Greg Weber <greg@gregweber.info>
Category: Development
Build-type: Simple
Cabal-version: >=1.6

-- Extra-source-files:

Library
-- Modules exported by the library.
Exposed-modules: Shelly

Build-depends: mtl, process, filepath, bytestring, text, base >= 4 && < 5, time, directory,
unix-compat

ghc-options: -Werror -Wall

-- demonstarated that command output in Shellish was not shown until after the command finished
-- not necessary anymore
-- Executable drain
-- main-is: test/drain.hs

source-repository head
type: darcs
location: http://repos.mornfall.net/shelly
4 changes: 2 additions & 2 deletions test/drain.hs
@@ -1,9 +1,9 @@
{-# Language OverloadedStrings #-}
import Shellish
import Shelly

main :: IO ()
main =
shellish $ do
shelly $ do
res <- run "test/drain.sh" []
echo "haskell done"
echo res

0 comments on commit 38c48f4

Please sign in to comment.