name:                 safe
version:              0.3.21
visibility:           public
id:                   safe-0.3.21-6o1HyJG07tuFT9s6NxlbmB
key:                  safe-0.3.21-6o1HyJG07tuFT9s6NxlbmB
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:                  888e55e344e44779abc1371dfefc5250
exposed:              True
exposed-modules:      Safe Safe.Exact Safe.Foldable Safe.Partial
hidden-modules:       Safe.Util
import-dirs:
    /usr/pkg/lib/aarch64-netbsd-ghc-9.10.1/safe-0.3.21-6o1HyJG07tuFT9s6NxlbmB

library-dirs:
    /usr/pkg/lib/aarch64-netbsd-ghc-9.10.1/safe-0.3.21-6o1HyJG07tuFT9s6NxlbmB

library-dirs-static:
    /usr/pkg/lib/aarch64-netbsd-ghc-9.10.1/safe-0.3.21-6o1HyJG07tuFT9s6NxlbmB

dynamic-library-dirs: /usr/pkg/lib/aarch64-netbsd-ghc-9.10.1
data-dir:             /usr/pkg/share/aarch64-netbsd-ghc-9.10.1/safe-0.3.21
hs-libraries:         HSsafe-0.3.21-6o1HyJG07tuFT9s6NxlbmB
depends:              base-4.20.0.0-inplace
haddock-interfaces:
    /usr/pkg/share/doc/aarch64-netbsd-ghc-9.10.1/safe-0.3.21/html/safe.haddock

haddock-html:
    /usr/pkg/share/doc/aarch64-netbsd-ghc-9.10.1/safe-0.3.21/html
