From aaa0dca56231c060372004cda46d719ec6cc3ec5 Mon Sep 17 00:00:00 2001 From: mrkkrp Date: Mon, 4 Jun 2018 18:12:23 +0700 Subject: [PATCH] =?UTF-8?q?Make=20=E2=80=98wai-api-static-build-with-bazel?= =?UTF-8?q?=E2=80=99=20build=20with=20Bazel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wai-app-static/Network/Wai/Application/Static.hs | 4 ++-- .../\327\247\327\250\327\250\327\250\327\250.html" | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 "wai-app-static/\327\247\327\250\327\250\327\250\327\250.html" diff --git a/wai-app-static/Network/Wai/Application/Static.hs b/wai-app-static/Network/Wai/Application/Static.hs index 2338b45d9..844dd6525 100644 --- a/wai-app-static/Network/Wai/Application/Static.hs +++ b/wai-app-static/Network/Wai/Application/Static.hs @@ -231,8 +231,8 @@ staticAppPieces _ _ req sendResponse H.status405 [("Content-Type", "text/plain")] "Only GET or HEAD is supported" -staticAppPieces _ [".hidden", "folder.png"] _ sendResponse = sendResponse $ W.responseLBS H.status200 [("Content-Type", "image/png")] $ L.fromChunks [$(embedFile "images/folder.png")] -staticAppPieces _ [".hidden", "haskell.png"] _ sendResponse = sendResponse $ W.responseLBS H.status200 [("Content-Type", "image/png")] $ L.fromChunks [$(embedFile "images/haskell.png")] +staticAppPieces _ [".hidden", "folder.png"] _ sendResponse = sendResponse $ W.responseLBS H.status200 [("Content-Type", "image/png")] $ L.fromChunks [$(embedFile "external/haskell_wai_app_static/images/folder.png")] +staticAppPieces _ [".hidden", "haskell.png"] _ sendResponse = sendResponse $ W.responseLBS H.status200 [("Content-Type", "image/png")] $ L.fromChunks [$(embedFile "external/haskell_wai_app_static/images/haskell.png")] staticAppPieces ss rawPieces req sendResponse = liftIO $ do case toPieces rawPieces of Just pieces -> checkPieces ss pieces req >>= response diff --git "a/wai-app-static/\327\247\327\250\327\250\327\250\327\250.html" "b/wai-app-static/\327\247\327\250\327\250\327\250\327\250.html" deleted file mode 100644 index 2e52da084..000000000 --- "a/wai-app-static/\327\247\327\250\327\250\327\250\327\250.html" +++ /dev/null @@ -1 +0,0 @@ -

HELLO WORLD