Gabriel Gonzalez
d575bf0949
Merge branch 'master' of github.com:Gabriel439/Haskell-Turtle-Library
2015-06-14 15:57:04 -07:00
Gabriel Gonzalez
67482ccbd3
Merge pull request #59 from PierreR/patch-2
...
Fix inshell example in slides
2015-06-14 12:20:49 -07:00
Pi3r
20ba60ef9d
Fix inshell example in slides
2015-06-13 18:53:35 +02:00
Gabriel Gonzalez
25db80ab86
Version 1.1.0 => 1.1.1
2015-06-08 18:55:42 -07:00
Gabriel Gonzalez
6f9cf79ff5
Updated tutorial
2015-06-08 18:53:14 -07:00
Gabriel Gonzalez
3e0776632c
Add getmod
/setmod
2015-06-08 18:50:22 -07:00
Gabriel Gonzalez
c805726990
Updated upper bounds for doctest
and foldl
2015-06-07 13:16:06 -07:00
Gabriel Gonzalez
ec3c924546
Updated documentation for chmod
and associated functions
2015-06-07 13:15:48 -07:00
Gabriel Gonzalez
34f00c8cbf
Tune warnings
2015-06-07 12:52:42 -07:00
Gabriel Gonzalez
e1fc1d97bd
Fixed haddocks
2015-06-07 12:48:50 -07:00
Gabriel Gonzalez
f3efaa8947
Add MonadIO
explanation to tutorial
2015-06-07 12:47:39 -07:00
Gabriel Gonzalez
2a5e4ea6d0
Update slides.md
2015-05-25 13:06:00 -07:00
Index Int
afe4cd0f15
Merge pull request #57 from Gabriel439/bench
...
Merge benchmark into master
2015-05-14 05:03:45 +03:00
Index Int
343f981523
Add .gitignore for build artifacts
2015-05-14 04:59:05 +03:00
Index Int
f1e64a932e
Support Integer options
2015-05-14 04:24:30 +03:00
Index Int
421137d147
Add header
and footer
2015-05-14 04:01:04 +03:00
Index Int
770948ce8f
Basic Turtle.Options module
2015-05-14 03:51:42 +03:00
Gabriel Gonzalez
822ab8324c
Update tutorial to mention new regex utilities
2015-05-12 14:27:35 -07:00
Index Int
cc5fa19bb1
Fix documentation typo
2015-05-13 00:03:04 +03:00
Index Int
dc35a336d5
Benchmark the bounded
combinator
2015-05-12 23:46:02 +03:00
Index Int
be761a53f1
Merge branch 'master' into bench
...
`bounded` and `upperBounded` combinators
2015-05-12 23:44:18 +03:00
Index Int
e848dcab9c
Add bounded
and upperBounded
combinators
...
closes #52
2015-05-12 23:43:34 +03:00
Index Int
86998c32ce
Basic benchmark for Turtle.Pattern
2015-05-12 22:44:27 +03:00
Gabriel Gonzalez
4d8607483e
Merge pull request #51 from int-index/master
...
Command line arguments
2015-05-11 13:24:47 -07:00
Index Int
937fa9730c
Command line arguments
2015-05-11 22:24:48 +03:00
Gabriel Gonzalez
d171e71748
Merge pull request #48 from int-index/master
...
Add `chmod` and related definitions
2015-05-09 08:54:35 -07:00
Index Int
ae84c3efc9
Return updated permissions from chmod
2015-05-09 01:12:31 +03:00
Index Int
2516940029
Unqualified Permissions
import from System.Directory
2015-05-08 02:39:19 +03:00
Index Int
563ad23499
Remove unnecessary Permissions
type synonym
2015-05-08 02:28:24 +03:00
Index Int
0628598dd8
Improve chmod
documentation
2015-05-08 01:45:39 +03:00
Index Int
3f8991e518
Add chmod
and related definitions
2015-05-08 01:16:11 +03:00
Gabriel Gonzalez
269719087e
Merge pull request #46 from int-index/master
...
Generalize IO to MonadIO for many functions
2015-05-06 07:34:37 -07:00
Index Int
05980936d4
Use liftM
in strict
to remove Functor
constraint
2015-05-06 04:35:10 +03:00
Index Int
e37ce1b1e4
More descriptive parameter names in echo
and err
2015-05-06 03:05:32 +03:00
Index Int
da393eecf6
Generalize IO to MonadIO for many functions
2015-05-06 02:39:46 +03:00
Gabriel Gonzalez
18550cdc8d
Added slides from class that I taught on Turtle
2015-05-04 16:01:30 -07:00
Gabriel Gonzalez
7a3caa3f0a
Merge pull request #44 from Profpatsch/semiring-doc
...
Add documentation to Num instances.
2015-05-03 17:48:35 -07:00
Profpatsch
d6b1232bc7
Revert "Remove redundant imports."
...
This reverts commit ea5045602a
.
2015-05-04 01:53:23 +02:00
Profpatsch
74a13d8ab2
Typo.
2015-05-04 01:50:48 +02:00
Profpatsch
ea5045602a
Remove redundant imports.
2015-05-04 01:49:54 +02:00
Profpatsch
0c7f9dbd2f
Add documentation to Num instances.
2015-05-04 01:45:34 +02:00
Gabriel Gonzalez
55fe1c7dd5
Merge pull request #42 from Profpatsch/collect-functions
...
Add functions that return Exitcodes and Stdout
2015-05-03 16:16:51 -07:00
Profpatsch
79e1f57355
Rename Collect to Strict.
2015-05-04 00:56:37 +02:00
Profpatsch
b9e16e5349
Add functions that return Exitcodes and Stdout
2015-05-01 16:00:01 +02:00
Gabriel Gonzalez
ebb0d7a507
Changed exit
to be a synonym for exitWith
...
As suggested by @PierreR
This is to make it more strongly typed. In the long run I'd like there to be a
`Num` instance for `ExitCode` so that we could use numeric literals directly,
but this is good enough for now.
2015-04-06 09:12:31 -07:00
Gabriel Gonzalez
1af5805bb6
Updated documentation
...
The example for `plus` now uses `plus digit` since `plus anyChar` is obsoleted
by `chars1`
2015-04-05 18:43:39 -07:00
Gabriel Gonzalez
ab3d595b9f
Added (.&&.)
and (.||.)
. Fixes #27
...
These commands behave analogous to their Bash counterparts
2015-04-04 19:35:30 -07:00
Gabriel Gonzalez
e120c0555a
Added (&)
. Fixes #28
...
For newer versions of base this will just re-export `Data.Function.(&)` and
for older versions I backport the definition.
The purpose of this to allow users to write pipelines from left to right and
without lots of parentheses, like this:
"123" + "456" & grep "123" & stdout
Thanks to @FranklinChen for the suggestion
2015-04-04 19:21:25 -07:00
Gabriel Gonzalez
119179ad2e
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-04 17:03:30 -07:00
Gabriel Gonzalez
ea04f280f4
Added the strict
utility to the Prelude
...
This is most useful when you want to run the entire file's contents through a
parser instead of parsing just a single line at a time
2015-03-31 21:19:12 -07:00