papa-0.7.0: src/Papa/Unsafe/Exception.hs
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -Wall #-}
-- | The functions that throw an exception from pure code, and so make the
-- function that calls them partial.
--
-- In "Papa", an exception is thrown only in 'Prelude.IO'
-- ('Papa.Base.Control.Exception.throwIO', 'Control.Lens.throwingM'), and an
-- expected failure is a value ('Data.Maybe.Maybe', 'Data.Either.Either',
-- 'Papa.Base.System.IO.Except.IOExcept').
--
-- This module exports only partial functions, and so combines with
-- @import Papa@.
--
-- @since 0.7.0
module Papa.Unsafe.Exception (
throw,
error,
errorWithoutStackTrace,
undefined,
throwing,
throwing_,
) where
import Control.Exception (throw)
import Control.Exception.Lens (throwing, throwing_)
import Prelude (error, errorWithoutStackTrace, undefined)