]> gitweb.michael.orlitzky.com - dead/htsn.git/blob - src/ExitCodes.hs
Minor documentation fixes; create all (even internal) docs with `make doc`.
[dead/htsn.git] / src / ExitCodes.hs
1 -- | All exit codes that the program can return (excepting
2 -- 'ExitSuccess').
3 --
4 module ExitCodes (
5 exit_no_feed_hosts,
6 exit_no_password,
7 exit_no_username,
8 exit_pidfile_exists )
9 where
10
11 -- | No feed hosts were given on the command line or in the config file.
12 --
13 exit_no_feed_hosts :: Int
14 exit_no_feed_hosts = 1
15
16 -- | No password was given on the command line or in the config file.
17 --
18 exit_no_password :: Int
19 exit_no_password = 2
20
21 -- | No username was given on the command line or in the config file.
22 --
23 exit_no_username :: Int
24 exit_no_username = 3
25
26 -- | When running as a daemon, the existence of a fixed PID file is
27 -- used to determine whether or not the daemon is already
28 -- running. If the PID file already exists, we shouldn't start.
29 --
30 exit_pidfile_exists :: Int
31 exit_pidfile_exists = 4