2015-01-18 02:52:18 +00:00
|
|
|
Name: turtle
|
Fixed numeric instances for `Pattern` and `Shell`
I removed the `Rational` and `Fractional` instances and changed the `Num`
instances
The `Num` instances did not obey the semiring laws, which was the primary
instigator for this change. However, there is also one very practical reason
for this change, too, which is that the weaker `Monoid` constraint plays
very nicely with `Text` (which is a `Monoid`, but not a `Num`).
This means that now you can do cool things like this for `Shell`:
>>> let x = "1" <|> "2"
>>> let y = "3" <|> "y"
>>> view (x * ", " * y)
"1, 3"
"1, 4"
"2, 3"
"2, 4"
Also, you can now use algebraic operations for `Pattern`s when matching `Text`,
for the same reason.
2015-04-05 00:03:30 +00:00
|
|
|
Version: 1.1.0
|
2015-01-18 02:52:18 +00:00
|
|
|
Cabal-Version: >=1.10
|
|
|
|
Build-Type: Simple
|
|
|
|
License: BSD3
|
|
|
|
License-File: LICENSE
|
|
|
|
Copyright: 2015 Gabriel Gonzalez
|
|
|
|
Author: Gabriel Gonzalez
|
|
|
|
Maintainer: Gabriel439@gmail.com
|
|
|
|
Bug-Reports: https://github.com/Gabriel439/Haskell-Turtle-Library/issues
|
|
|
|
Synopsis: Shell programming, Haskell-style
|
2015-01-28 02:40:27 +00:00
|
|
|
Description: @turtle@ is a reimplementation of the Unix command line environment
|
|
|
|
in Haskell so that you can use Haskell as both a shell and a scripting
|
2015-01-31 18:32:06 +00:00
|
|
|
language.
|
2015-01-18 02:52:18 +00:00
|
|
|
.
|
|
|
|
Features include:
|
|
|
|
.
|
2015-01-28 02:40:27 +00:00
|
|
|
* Batteries included: Command an extended suite of predefined utilities
|
2015-01-20 04:05:19 +00:00
|
|
|
.
|
2015-01-28 02:40:27 +00:00
|
|
|
* Interoperability: You can still run external shell commands
|
2015-01-20 06:23:15 +00:00
|
|
|
.
|
2015-01-20 04:05:19 +00:00
|
|
|
* Portability: Works on Windows, OS X, and Linux
|
2015-01-18 02:52:18 +00:00
|
|
|
.
|
2015-01-20 04:05:19 +00:00
|
|
|
* Exception safety: Safely acquire and release resources
|
2015-01-18 02:52:18 +00:00
|
|
|
.
|
2015-01-20 04:05:19 +00:00
|
|
|
* Streaming: Transform or fold command output in constant space
|
2015-01-18 02:52:18 +00:00
|
|
|
.
|
2015-01-20 04:05:19 +00:00
|
|
|
* Patterns: Use typed regular expressions that can parse structured values
|
|
|
|
.
|
2015-01-28 02:40:27 +00:00
|
|
|
* Formatting: Type-safe @printf@-style text formatting
|
2015-01-20 06:23:15 +00:00
|
|
|
.
|
|
|
|
* Modern: Supports @text@ and @system-filepath@
|
|
|
|
.
|
|
|
|
Read "Turtle.Tutorial" for a detailed tutorial or "Turtle.Prelude" for a
|
|
|
|
quick-start guide
|
2015-01-31 18:32:06 +00:00
|
|
|
.
|
|
|
|
@turtle@ is designed to be beginner-friendly, but as a result lacks certain
|
|
|
|
features, like tracing commands. If you feel comfortable using @turtle@
|
|
|
|
then you should also check out the @Shelly@ library which provides similar
|
|
|
|
functionality.
|
2015-01-20 04:05:19 +00:00
|
|
|
Category: System
|
2015-01-18 02:52:18 +00:00
|
|
|
Source-Repository head
|
|
|
|
Type: git
|
2015-01-20 04:05:19 +00:00
|
|
|
Location: https://github.com/Gabriel439/Haskell-Turtle-Library
|
2015-01-18 02:52:18 +00:00
|
|
|
|
|
|
|
Library
|
|
|
|
HS-Source-Dirs: src
|
|
|
|
Build-Depends:
|
2015-02-08 18:04:00 +00:00
|
|
|
base >= 4.5 && < 5 ,
|
2015-01-18 20:46:19 +00:00
|
|
|
async >= 2.0.0.0 && < 2.1,
|
2015-01-26 01:13:49 +00:00
|
|
|
clock >= 0.4.1.2 && < 0.5,
|
2015-01-19 00:06:50 +00:00
|
|
|
directory < 1.3,
|
2015-06-07 20:16:06 +00:00
|
|
|
foldl < 1.2,
|
2015-01-27 03:19:20 +00:00
|
|
|
managed < 1.1,
|
2015-01-18 21:35:38 +00:00
|
|
|
process >= 1.0.1.1 && < 1.3,
|
2015-01-18 15:58:56 +00:00
|
|
|
system-filepath >= 0.3.1 && < 0.5,
|
|
|
|
system-fileio >= 0.2.1 && < 0.4,
|
2015-01-19 02:17:55 +00:00
|
|
|
temporary < 1.3,
|
2015-01-18 15:58:56 +00:00
|
|
|
text < 1.3,
|
2015-01-19 01:53:54 +00:00
|
|
|
time < 1.6,
|
2015-01-18 15:58:56 +00:00
|
|
|
transformers >= 0.2.0.0 && < 0.5
|
2015-01-19 00:06:50 +00:00
|
|
|
if os(windows)
|
|
|
|
Build-Depends: Win32 >= 2.2.0.1 && < 2.4
|
|
|
|
else
|
|
|
|
Build-Depends: unix >= 2.5.1.0 && < 2.8
|
2015-01-18 02:52:18 +00:00
|
|
|
Exposed-Modules:
|
|
|
|
Turtle,
|
2015-01-20 05:21:34 +00:00
|
|
|
Turtle.Format,
|
2015-01-18 15:58:56 +00:00
|
|
|
Turtle.Pattern,
|
2015-01-18 02:52:18 +00:00
|
|
|
Turtle.Shell,
|
2015-01-20 07:59:59 +00:00
|
|
|
Turtle.Prelude,
|
|
|
|
Turtle.Tutorial
|
2015-01-18 02:52:18 +00:00
|
|
|
GHC-Options: -O2 -Wall
|
|
|
|
Default-Language: Haskell2010
|
|
|
|
|
|
|
|
test-suite tests
|
|
|
|
Type: exitcode-stdio-1.0
|
|
|
|
HS-Source-Dirs: test
|
|
|
|
Main-Is: Main.hs
|
|
|
|
GHC-Options: -O2 -Wall
|
|
|
|
Default-Language: Haskell2010
|
|
|
|
Build-Depends:
|
|
|
|
base >= 4 && < 5 ,
|
2015-06-07 20:16:06 +00:00
|
|
|
doctest >= 0.9.12 && < 0.11
|
2015-05-12 19:44:27 +00:00
|
|
|
|
|
|
|
benchmark bench
|
|
|
|
Type: exitcode-stdio-1.0
|
|
|
|
HS-Source-Dirs: bench
|
|
|
|
Main-Is: Main.hs
|
|
|
|
GHC-Options: -O2 -Wall -threaded
|
|
|
|
Default-Language: Haskell2010
|
|
|
|
Build-Depends:
|
|
|
|
base >= 4 && < 5 ,
|
|
|
|
criterion >= 1.1.0.0 && < 2 ,
|
|
|
|
text < 1.3,
|
|
|
|
turtle
|