Skip to content

Commit 3c6ebd9

Browse files
committed
stylish-haskell
1 parent 5ed994c commit 3c6ebd9

File tree

8 files changed

+22
-24
lines changed

8 files changed

+22
-24
lines changed

Setup.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import Distribution.Simple
1+
import Distribution.Simple
22
main = defaultMain

app/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 Init (runApp)
3+
import Init (runApp)
44

55
-- | The 'main' function gathers the required environment information and
66
-- initializes the application.

src/Api.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
module Api (app) where
55

66
import Control.Monad.Reader (runReaderT)
7-
import Servant ((:<|>) ((:<|>)),
8-
Proxy (Proxy), Raw, Server,
9-
serve, serveDirectoryFileServer)
7+
import Servant ((:<|>) ((:<|>)), Proxy (Proxy), Raw,
8+
Server, serve, serveDirectoryFileServer)
109
import Servant.Server
1110

12-
import Api.User (UserAPI, userServer, userApi)
11+
import Api.User (UserAPI, userApi, userServer)
1312
import Config (AppT (..), Config (..))
1413

1514
-- | This is the function we export to run our 'UserAPI'. Given

src/Api/User.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import Servant.JS (vanillaJS, writeJSForAPI)
1515

1616
import Config (AppT (..))
1717
import Control.Monad.Metrics (increment, metricsCounters)
18-
import Data.IORef (readIORef)
1918
import Data.HashMap.Lazy (HashMap)
19+
import Data.IORef (readIORef)
2020
import Data.Text (Text)
2121
import Lens.Micro ((^.))
2222
import Models (User (User), runDb, userEmail,

src/DevelMain.hs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@ module DevelMain where
1818

1919
import Prelude
2020

21-
import Control.Concurrent (MVar, ThreadId, forkIO, killThread,
22-
newEmptyMVar, putMVar, takeMVar)
23-
import Control.Exception (finally)
24-
import Control.Monad ((>=>))
25-
import Data.IORef (IORef, newIORef, readIORef,
26-
writeIORef)
27-
import Foreign.Store (Store (..), lookupStore, readStore,
28-
storeAction, withStore)
29-
import GHC.Word (Word32)
30-
import Init (runApp)
21+
import Control.Concurrent (MVar, ThreadId, forkIO, killThread,
22+
newEmptyMVar, putMVar, takeMVar)
23+
import Control.Exception (finally)
24+
import Control.Monad ((>=>))
25+
import Data.IORef (IORef, newIORef, readIORef, writeIORef)
26+
import Foreign.Store (Store (..), lookupStore, readStore,
27+
storeAction, withStore)
28+
import GHC.Word (Word32)
29+
import Init (runApp)
3130

3231
-- | Start or restart the server.
3332
-- newStore is from foreign-store.

src/Logger.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ module Logger
1111
) where
1212

1313
import Control.Monad.Logger
14-
import qualified Control.Monad.Logger as Logger
14+
import qualified Control.Monad.Logger as Logger
1515
import Katip
16-
import qualified System.IO as IO
17-
import qualified System.Log.FastLogger as FastLogger
16+
import qualified System.IO as IO
17+
import qualified System.Log.FastLogger as FastLogger
1818

1919
defaultLogEnv :: IO LogEnv
2020
defaultLogEnv = do

test/ApiSpec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module ApiSpec where
22

3-
import Test.Hspec
4-
import Test.QuickCheck
3+
import Test.Hspec
4+
import Test.QuickCheck
55

66
spec :: Spec
77
spec = do

test/UserDbSpec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import Control.Exception (throwIO)
1010
import Control.Monad.Except (runExceptT)
1111
import Control.Monad.Reader (runReaderT)
1212

13-
import Database.Persist.Postgresql (Entity (..), deleteWhere,
14-
insert, runSqlPool)
13+
import Database.Persist.Postgresql (Entity (..), deleteWhere, insert,
14+
runSqlPool)
1515
import Database.Persist.Sql (ConnectionPool)
1616
import Database.Persist.Types (Filter)
1717

0 commit comments

Comments
 (0)