Skip to content

Commit fe8c298

Browse files
authored
Merge pull request #21 from MatrixAI/qualified-imports
Fixed Imports that needs to be qualified.
2 parents acd289d + 673dbce commit fe8c298

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Demo.hs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
module Demo where
66

7-
import Control.Exception.Safe as E
7+
import qualified Control.Exception.Safe as E
88
import Control.Exception.Safe ( MonadCatch
99
, MonadMask
1010
, MonadThrow
1111
)
1212
import Control.Monad.IO.Class ( MonadIO
1313
, liftIO
1414
)
15-
import Control.Monad.Logger as L
15+
import qualified Control.Monad.Logger as L
1616
import Control.Monad.Logger ( LoggingT
1717
, MonadLogger
1818
)
@@ -29,12 +29,12 @@ import Data.Default.Class ( Default
2929
)
3030
import Data.IP ( IP )
3131
import Data.String ( fromString )
32-
import Network.HTTP.Types as HTTP
33-
import Network.HTTP.Types.Header as HTTPHeaders
32+
import qualified Network.HTTP.Types as HTTP
33+
import qualified Network.HTTP.Types.Header as HTTPHeaders
3434
import Network.Socket ( PortNumber )
3535
import Network.Wai ( Application )
36-
import Network.Wai as Wai
37-
import Network.Wai.Handler.Warp as Warp
36+
import qualified Network.Wai as Wai
37+
import qualified Network.Wai.Handler.Warp as Warp
3838
import System.Environment ( lookupEnv )
3939

4040

@@ -63,12 +63,12 @@ type Demo = DemoT IO
6363

6464
runDemo :: DemoEnv -> Demo a -> IO a
6565
runDemo env demo = do
66-
runStderrLoggingT $ runReaderT (runDemoT demo) env
66+
L.runStderrLoggingT $ runReaderT (runDemoT demo) env
6767

6868
warpApp :: Application
6969
warpApp req respond = E.bracket_
70-
(runStderrLoggingT ($(L.logInfo) "Try IO Block"))
71-
(runStderrLoggingT ($(L.logInfo) "Clean IO Block"))
70+
(L.runStderrLoggingT ($(L.logInfo) "Try IO Block"))
71+
(L.runStderrLoggingT ($(L.logInfo) "Clean IO Block"))
7272
(respond $ Wai.responseLBS HTTP.status200
7373
[(HTTPHeaders.hContentType, "text/plain")]
7474
"Hello from Demo!\n"

0 commit comments

Comments
 (0)