safe 0.2 → 0.3
raw patch · 2 files changed
+8/−13 lines, 2 filesdep ~base
Dependency ranges changed: base
Files
- Safe.hs +3/−8
- safe.cabal +5/−5
Safe.hs view
@@ -1,15 +1,14 @@- {- | Module : Safe-Copyright : (c) Neil Mitchell 2007-2008+Copyright : (c) Neil Mitchell 2007-2010 License : BSD3 -Maintainer : http://www.cs.york.ac.uk/~ndm/+Maintainer : http://community.haskell.org/~ndm/safe Stability : in-progress Portability : portable A library for safe functions, based on standard functions that may crash.-For more details see <http://www-users.cs.york.ac.uk/~ndm/safe/>+For more details see <http://community.haskell.org/~ndm/safe/> In general, each unsafe function has up to 4 forms. Since 'tail' has all the possible forms, it is fully documented.@@ -53,10 +52,6 @@ import Data.Maybe--{-# PARTIAL tailNote, initNote, headNote, lastNote, minimumNote, maximumNote #-}-{-# PARTIAL foldr1Note, foldl1Note, fromJustNote, assertNote, at, atNote, readNote #-}-{-# PARTIAL lookupJustNote, lookupJust #-} liftDef :: (a -> b) -> (a -> Bool) -> b -> (a -> b)
safe.cabal view
@@ -1,13 +1,13 @@ Name: safe Build-Type: Simple-Version: 0.2+Version: 0.3 License: BSD3 License-File: LICENSE-Copyright: 2007-8, Neil Mitchell+Copyright: 2007-2010, Neil Mitchell Maintainer: ndmitchell@gmail.com Author: Neil Mitchell-Homepage: http://www-users.cs.york.ac.uk/~ndm/safe/-Build-Depends: base+Homepage: http://community.haskell.org/~ndm/safe/+Build-Depends: base < 5 Category: Unclassified Synopsis: Library for safe (pattern match free) functions Description:@@ -18,4 +18,4 @@ These functions can be used to reduce the number of unsafe pattern matches in your code. Exposed-modules:- Safe+ Safe