Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

No commit message

  • Loading branch information...
commit 1fb77233df4feb5209c29df0e2e24fc52d1260b8 1 parent cf69a56
@tanakh authored
Showing with 33 additions and 28 deletions.
  1. +33 −28 README.rst
View
61 README.rst
@@ -28,47 +28,52 @@ It accepts any function whose type is ([a] -> [a]) or (String -> String).
* Drop lines
- ::
- $ ls | hoe 'drop 3'
- Setup.hs
- dist
- hoe.cabal
- src
+ ::
+
+ $ ls | hoe 'drop 3'
+ Setup.hs
+ dist
+ hoe.cabal
+ src
* Add "> " to line head.
- ::
- $ ls | hoe '("> "++)'
- > LICENSE
- > README.rst
- > README.rst~
- > Setup.hs
- > dist
- > hoe.cabal
- > src
+ ::
+
+ $ ls | hoe '("> "++)'
+ > LICENSE
+ > README.rst
+ > README.rst~
+ > Setup.hs
+ > dist
+ > hoe.cabal
+ > src
It also accepts (Char -> Char) functions.
* To uppercase
- ::
- $ ls | hoe 'toUpper'
- LICENSE
- README.RST
- README.RST~
- SETUP.HS
- DIST
- HOE.CABAL
- SRC
+ ::
+
+ $ ls | hoe 'toUpper'
+ LICENSE
+ README.RST
+ README.RST~
+ SETUP.HS
+ DIST
+ HOE.CABAL
+ SRC
Of course, it can evaluate simple values.
* Calculate a integer value
- ::
- $ hoe '2^100'
+ ::
+
+ $ hoe '2^100'
* Make many files
- ::
- $ hoe 'forM [1..10] $ \i -> writeFile ("file."++show i) ""'
+ ::
+
+ $ hoe 'forM [1..10] $ \i -> writeFile ("file."++show i) ""'
Please sign in to comment.
Something went wrong with that request. Please try again.