]> gitweb.michael.orlitzky.com - dead/harbl.git/blob - harbl-cli/src/ExitCodes.hs
472ea152d4a2293969322c85ca827026d2b944b6
[dead/harbl.git] / harbl-cli / src / ExitCodes.hs
1 -- | All exit codes that the program can return (excepting
2 -- ExitSuccess).
3 --
4 module ExitCodes (
5 exit_no_hosts,
6 exit_no_lists,
7 exit_unparseable_host,
8 exit_unparseable_list )
9 where
10
11 -- | No hosts were given on the command-line or in a config file.
12 --
13 exit_no_hosts :: Int
14 exit_no_hosts = 1
15
16
17 -- | No lists were given on the command-line or in a config file.
18 --
19 exit_no_lists :: Int
20 exit_no_lists = 2
21
22
23 -- | The user gave us an RBL we couldn't parse.
24 --
25 exit_unparseable_list :: Int
26 exit_unparseable_list = 3
27
28
29 -- | The user gave us a host we couldn't parse.
30 --
31 exit_unparseable_host :: Int
32 exit_unparseable_host = 4