A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://hackage.haskell.org/packages/archive/base/4.5.0.0/doc/html/src/GHC-Err.html below:

GHC/Err.lhs

\begin{code}
























module GHC.Err
       (
         absentErr                 
       , divZeroError              
       , overflowError             

       , error                     

       , undefined                 
       ) where

#ifndef __HADDOCK__
import GHC.Types
import GHC.Exception
#endif
\end{code} %********************************************************* %* * \subsection{Error-ish functions} %* * %********************************************************* \begin{code}

error :: [Char] -> a
error s = throw (ErrorCall s)






undefined :: a
undefined =  error "Prelude.undefined"
\end{code} %********************************************************* %* * \subsection{Compiler generated errors + local utils} %* * %********************************************************* Used for compiler-generated error message; encoding saves bytes of string junk. \begin{code}
absentErr :: a

absentErr = error "Oops! The program has entered an `absent' argument!\n"
\end{code} Divide by zero and arithmetic overflow. We put them here because they are needed relatively early in the libraries before the Exception type has been defined yet. \begin{code}

divZeroError :: a
divZeroError = throw DivideByZero


overflowError :: a
overflowError = throw Overflow
\end{code}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4