From d8ca671086123878c975e2409f92d1dea1b8301e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 10 Nov 2014 16:27:36 -0400 Subject: [PATCH] didn't need quite so much indentation --- src/Propellor/Property/Tor.hs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Propellor/Property/Tor.hs b/src/Propellor/Property/Tor.hs index 47cd83a..3623e9c 100644 --- a/src/Propellor/Property/Tor.hs +++ b/src/Propellor/Property/Tor.hs @@ -20,11 +20,11 @@ hiddenServiceAvailable :: FilePath -> Int -> Property hiddenServiceAvailable dir port = hiddenServiceHostName prop where prop = "/etc/tor/torrc" `File.containsLines` - [ "HiddenServiceDir " ++ dir - , "HiddenServicePort " ++ show port ++ " 127.0.0.1:" ++ show port - ] - `describe` "hidden service available" - `onChange` Service.reloaded "tor" + [ "HiddenServiceDir " ++ dir + , "HiddenServicePort " ++ show port ++ " 127.0.0.1:" ++ show port + ] + `describe` "hidden service available" + `onChange` Service.reloaded "tor" hiddenServiceHostName p = adjustProperty p $ \satisfy -> do r <- satisfy h <- liftIO $ readFile (dir "hostname")