Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (ccb8a0e6fedc915650052d3a9ec77d724d71ea4e)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (ccb8a0e6fedc915650052d3a9ec77d724d71ea4e)
  • Date: Fri, 26 Jun 2015 03:16:12 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog | 4 ++++
haskell/haskell-safe/DEPENDS | 1 +
haskell/haskell-safe/DETAILS | 38 ++++++++++++++++++++++++++++++++++++++
haskell/haskell-safe/HISTORY | 2 ++
4 files changed, 45 insertions(+)

New commits:
commit ccb8a0e6fedc915650052d3a9ec77d724d71ea4e
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

haskell-safe: new spell, Library of safe (exception free) functions

diff --git a/ChangeLog b/ChangeLog
index b38fa9a..dfe732e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-06-26 Ismael Luceno <ismael AT sourcemage.org>
+ * haskell/haskell-safe: new spell, Library of safe (exception free)
+ functions
+
2015-06-25 Ismael Luceno <ismael AT sourcemage.org>
* haskell/haskell-ansi-terminal: new spell, Simple ANSI terminal
support, with Windows compatibility
diff --git a/haskell/haskell-safe/DEPENDS b/haskell/haskell-safe/DEPENDS
new file mode 100755
index 0000000..8eace53
--- /dev/null
+++ b/haskell/haskell-safe/DEPENDS
@@ -0,0 +1 @@
+depends ghc
diff --git a/haskell/haskell-safe/DETAILS b/haskell/haskell-safe/DETAILS
new file mode 100755
index 0000000..867dd30
--- /dev/null
+++ b/haskell/haskell-safe/DETAILS
@@ -0,0 +1,38 @@
+ SPELL=haskell-safe
+ VERSION=0.3.9
+ SOURCE="safe-$VERSION.tar.gz"
+ SOURCE_URL[0]=http://hackage.haskell.org/package/safe-$VERSION/$SOURCE
+
SOURCE_HASH=sha512:7759ae8acf0348a3070cc47e78b224ac5a826ecf46302cbe413b52c53d8d6bb6ebd939b0fe3dbb47034e910876bd7c849609f008e44f09e5ccb99a9997d2f418
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/safe-$VERSION"
+ WEB_SITE="https://github.com/ndmitchell/safe#readme";
+ LICENSE[0]="BSD3"
+ ENTERED=20150626
+ KEYWORDS=""
+ SHORT="Library of safe (exception free) functions"
+cat << EOF
+A library wrapping @Prelude@/@Data.List@ functions that can throw exceptions,
+such as @head@ and @!!@. Each unsafe function has up to four variants,
+e.g. with @tail@:
+
+* @tail :: [a] -> [a]@, raises an error on @tail []@.
+
+* @tailMay :: [a] -> /Maybe/ [a]@, turns errors into @Nothing@.
+
+* @tailDef :: /[a]/ -> [a] -> [a]@, takes a default to return on errors.
+
+* @tailNote :: /String/ -> [a] -> [a]@, takes an extra argument which
+supplements the error message.
+
+* @tailSafe :: [a] -> [a]@, returns some sensible default if possible, @[]@
+in the case of @tail@.
+
+This package is divided into three modules:
+
+* "Safe" contains safe variants of @Prelude@ and @Data.List@ functions.
+
+* "Safe.Foldable" contains safe variants of @Foldable@ functions.
+
+* "Safe.Exact" creates crashing versions of functions like @zip@ (errors if
+the lists are not equal) and @take@ (errors if there are not enough
elements),
+then wraps them to provide safe variants.
+EOF
diff --git a/haskell/haskell-safe/HISTORY b/haskell/haskell-safe/HISTORY
new file mode 100644
index 0000000..bed0eed
--- /dev/null
+++ b/haskell/haskell-safe/HISTORY
@@ -0,0 +1,2 @@
+2015-06-26 Ismael Luceno <ismael AT sourcemage.org>
+ * DEPENDS, DETAILS: spell created



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (ccb8a0e6fedc915650052d3a9ec77d724d71ea4e), Ismael Luceno, 06/25/2015

Archive powered by MHonArc 2.6.24.

Top of Page