Library of safe (exception free) functions
  • Overview
  • Builds
  • Updates
  • Bugs
  • Contents
  • Changelog
  • Sources


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.

Active Releases Overview

Release Latest Released Version Version in Testing
{{html release}} 
{{html stable_version}} {{html testing_version}}

Upstream Summary



Koji build ghc-safe-0.3.8-2.fc23.ppc64le.rpm signed with sigkey '873529b8'

Details 14 days ago - 2015-08-21 02:43:50


Package list change for ghc-safe: 'SHADOWBUILD-f24-build' (arm)

Details 14 days ago - 2015-08-21 01:04:40

pbrobinson's ghc-safe-0.3.9-1.fc24 completed (arm)

Details 15 days ago - 2015-08-20 16:01:45

pbrobinson's ghc-safe-0.3.9-1.fc24 started building (arm)

Details 15 days ago - 2015-08-20 15:56:48


Koji build ghc-safe-0.3.8-2.fc23.ppc64.rpm signed with sigkey '873529b8'

Details 15 days ago - 2015-08-19 23:24:16

Found a bug? File a ticket. Note: There's some caching going on here. If you expect something and don't see it, check back in 5 minutes.

This Web Site is licensed under the GNU Affero General Public License. You may get sources for the current running code from these repositories: