name:                 safe
version:              0.3.21
visibility:           public
id:                   safe-0.3.21-6ixSGbBKIm94gAu2Mno2fr
key:                  safe-0.3.21-6ixSGbBKIm94gAu2Mno2fr
license:              BSD-3-Clause
copyright:            Neil Mitchell 2007-2024
maintainer:           Neil Mitchell <ndmitchell@gmail.com>
author:               Neil Mitchell <ndmitchell@gmail.com>
homepage:             https://github.com/ndmitchell/safe#readme
synopsis:             Library of safe (exception free) functions
description:
    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.

category:             Unclassified
abi:                  b566c8f324091f2f6de84f057c6d18ed
exposed:              True
exposed-modules:      Safe Safe.Exact Safe.Foldable Safe.Partial
hidden-modules:       Safe.Util
import-dirs:
    /usr/pkg/lib/x86_64-netbsd-ghc-9.8.2/safe-0.3.21-6ixSGbBKIm94gAu2Mno2fr

library-dirs:
    /usr/pkg/lib/x86_64-netbsd-ghc-9.8.2/safe-0.3.21-6ixSGbBKIm94gAu2Mno2fr

library-dirs-static:
    /usr/pkg/lib/x86_64-netbsd-ghc-9.8.2/safe-0.3.21-6ixSGbBKIm94gAu2Mno2fr

dynamic-library-dirs: /usr/pkg/lib/x86_64-netbsd-ghc-9.8.2
data-dir:             /usr/pkg/share/x86_64-netbsd-ghc-9.8.2/safe-0.3.21
hs-libraries:         HSsafe-0.3.21-6ixSGbBKIm94gAu2Mno2fr
depends:              base-4.19.1.0-inplace
haddock-interfaces:
    /usr/pkg/share/doc/x86_64-netbsd-ghc-9.8.2/safe-0.3.21/html/safe.haddock

haddock-html:         /usr/pkg/share/doc/x86_64-netbsd-ghc-9.8.2/safe-0.3.21/html
