X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FOptionalConfiguration.hs;h=8790ca075943fe94a0f54e9d291a5c5cfc81b8c7;hb=a4eb5f096c486cb94b1e8a25de7bc16879cab6e5;hp=3b663d0eff1a5e61cfaa1dfb5a8327494e2fc7a2;hpb=ed10e83bff7731ca0e661970051fbce3b44d40c5;p=dead%2Fhtsn.git diff --git a/src/OptionalConfiguration.hs b/src/OptionalConfiguration.hs index 3b663d0..8790ca0 100644 --- a/src/OptionalConfiguration.hs +++ b/src/OptionalConfiguration.hs @@ -34,9 +34,8 @@ import System.FilePath ( () ) import System.IO.Error ( catchIOError ) import System.Log ( Priority(..) ) -import Logging ( log_error ) -- Can't import report_error from Main -import Terminal ( display_error ) -- 'cause of circular imports. -import TSN.FeedHosts ( FeedHosts(..) ) +import FeedHosts ( FeedHosts(..) ) +import Network.Services.TSN.Report ( report_error ) -- Derive standalone instances of Data and Typeable for Priority. This @@ -145,12 +144,10 @@ instance DCT.Configured Priority where from_rc :: IO OptionalConfiguration from_rc = do etc <- catchIOError getSysconfDir (\e -> do - display_error (show e) - log_error (show e) + report_error (show e) return "/etc") home <- catchIOError getHomeDirectory (\e -> do - display_error (show e) - log_error (show e) + report_error (show e) return "$(HOME)") let global_config_path = etc "htsnrc" let user_config_path = home ".htsnrc"