Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id 22D50A8D15 for ; Sat, 2 Aug 2014 21:40:21 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id C95D614A12C; Sat, 2 Aug 2014 21:40:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id B1C3114A10C for ; Sat, 2 Aug 2014 21:40:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id cYMKb-p7Eb-7 for ; Sat, 2 Aug 2014 21:40:17 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 0D33F14A0D8 for ; Sat, 2 Aug 2014 21:40:17 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 0B2B896; Sat, 2 Aug 2014 21:40:17 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 2 Aug 2014 21:40:17 +0000 From: "Ryosuke Moro" Subject: CVS commit: pkgsrc/devel/hs-safe To: pkgsrc-changes@NetBSD.org Reply-To: szptvlfn@netbsd.org X-Mailer: log_accum Message-Id: <20140802214017.0B2B896@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: szptvlfn Date: Sat Aug 2 21:40:17 UTC 2014 Added Files: pkgsrc/devel/hs-safe: DESCR Makefile PLIST buildlink3.mk distinfo Log Message: Import safe-0.3.7 as devel/hs-safe, packaged for wip. 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. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/devel/hs-safe/DESCR \ pkgsrc/devel/hs-safe/Makefile pkgsrc/devel/hs-safe/PLIST \ pkgsrc/devel/hs-safe/buildlink3.mk pkgsrc/devel/hs-safe/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.