Skip to content

Commit 73aa9e1

Browse files
committed
Fixed brittany formatting
1 parent b319a3e commit 73aa9e1

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

app/ffi/Main.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
module Main where
22

3-
import qualified FFI as F
4-
import Lib (someFunc)
3+
import qualified FFI as F
4+
import Lib ( someFunc )
55

66
main :: IO ()
77
main = do
88
time <- F.getTime
9-
let foreignPi = F.getPi
10-
let negPi = F.getNegPi
9+
let foreignPi = F.getPi
10+
let negPi = F.getNegPi
1111
let foreignSum = F.negAdd 1 2
1212
print time
1313
print foreignPi

app/library/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ bar' msg = L.runFileLoggingT "/tmp/demo.log" $ do
5252
$(L.logInfo) $ T.pack $ "[bar'] Got user input: " ++ msg
5353
-- get the logging action from caller's logging context
5454
logAction <- L.askLoggerIO
55-
out <- liftIO $ runBarWithLogger (`runLoggingT` logAction) $ preBar msg
55+
out <- liftIO $ runBarWithLogger (`runLoggingT` logAction) $ preBar msg
5656
liftIO $ putStrLn out
5757

5858
-- run runFooBarT and supply a file based logging capability

app/service/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Main where
22

3-
import Demo
3+
import Demo
44

55
main :: IO ()
66
main = Demo.runDemoApp

src/Demo.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ runDemo env demo = L.runStderrLoggingT $ runReaderT (runDemoT demo) env
6666

6767
warpApp :: Application
6868
warpApp req respond = E.bracket_
69-
(L.runStderrLoggingT
70-
($(L.logInfo) "Try IO Block"))
69+
(L.runStderrLoggingT ($(L.logInfo) "Try IO Block"))
7170
(L.runStderrLoggingT ($(L.logInfo) "Clean IO Block"))
7271
(respond $ Wai.responseLBS HTTP.status200
7372
[(HTTPHeaders.hContentType, "text/plain")]

0 commit comments

Comments
 (0)