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