We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ed994c commit 3c6ebd9Copy full SHA for 3c6ebd9
Setup.hs
@@ -1,2 +1,2 @@
1
-import Distribution.Simple
+import Distribution.Simple
2
main = defaultMain
app/Main.hs
@@ -1,6 +1,6 @@
module Main where
3
-import Init (runApp)
+import Init (runApp)
4
5
-- | The 'main' function gathers the required environment information and
6
-- initializes the application.
src/Api.hs
@@ -4,12 +4,11 @@
module Api (app) where
import Control.Monad.Reader (runReaderT)
7
-import Servant ((:<|>) ((:<|>)),
8
- Proxy (Proxy), Raw, Server,
9
- serve, serveDirectoryFileServer)
+import Servant ((:<|>) ((:<|>)), Proxy (Proxy), Raw,
+ Server, serve, serveDirectoryFileServer)
10
import Servant.Server
11
12
-import Api.User (UserAPI, userServer, userApi)
+import Api.User (UserAPI, userApi, userServer)
13
import Config (AppT (..), Config (..))
14
15
-- | This is the function we export to run our 'UserAPI'. Given
src/Api/User.hs
@@ -15,8 +15,8 @@ import Servant.JS (vanillaJS, writeJSForAPI)
16
import Config (AppT (..))
17
import Control.Monad.Metrics (increment, metricsCounters)
18
-import Data.IORef (readIORef)
19
import Data.HashMap.Lazy (HashMap)
+import Data.IORef (readIORef)
20
import Data.Text (Text)
21
import Lens.Micro ((^.))
22
import Models (User (User), runDb, userEmail,
src/DevelMain.hs
@@ -18,16 +18,15 @@ module DevelMain where
import Prelude
-import Control.Concurrent (MVar, ThreadId, forkIO, killThread,
- 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 Control.Concurrent (MVar, ThreadId, forkIO, killThread,
+ newEmptyMVar, putMVar, takeMVar)
+import Control.Exception (finally)
+import Control.Monad ((>=>))
+import Data.IORef (IORef, newIORef, readIORef, writeIORef)
+import Foreign.Store (Store (..), lookupStore, readStore,
+ storeAction, withStore)
+import GHC.Word (Word32)
31
32
-- | Start or restart the server.
33
-- newStore is from foreign-store.
src/Logger.hs
@@ -11,10 +11,10 @@ module Logger
) where
import Control.Monad.Logger
-import qualified Control.Monad.Logger as Logger
+import qualified Control.Monad.Logger as Logger
import Katip
-import qualified System.IO as IO
-import qualified System.Log.FastLogger as FastLogger
+import qualified System.IO as IO
+import qualified System.Log.FastLogger as FastLogger
defaultLogEnv :: IO LogEnv
defaultLogEnv = do
test/ApiSpec.hs
@@ -1,7 +1,7 @@
module ApiSpec where
-import Test.Hspec
-import Test.QuickCheck
+import Test.Hspec
+import Test.QuickCheck
spec :: Spec
spec = do
test/UserDbSpec.hs
@@ -10,8 +10,8 @@ import Control.Exception (throwIO)
import Control.Monad.Except (runExceptT)
-import Database.Persist.Postgresql (Entity (..), deleteWhere,
- insert, runSqlPool)
+import Database.Persist.Postgresql (Entity (..), deleteWhere, insert,
+ runSqlPool)
import Database.Persist.Sql (ConnectionPool)
import Database.Persist.Types (Filter)
0 commit comments