ZVON > References > Haskell reference
| Indexes | Syntax | Prelude | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | >> System << | Time | Locale | CPUTime | Random

Module: System
Function: exitFailure
Type: IO a
Description: The value exitFailure is equal to exitWith (ExitFailure exitfail), where exitfail is implementation-dependent.
Related: exitWith

Example 1

Input: exitFailure

Output: <<IO action>>

Example 2
Program source: 

import System

main = aaa 1

aaa 10 = exitFailure
aaa x  = do putStr (show x)
	    aaa (x+1)

Output: 123456789