From: sabadev Date: Sun, 25 Apr 2021 03:42:08 +0000 (-0400) Subject: Switched to forcing UTF-8 for file reads. X-Git-Url: http://sabadev.xyz:4321/?a=commitdiff_plain;h=4ecd860ee1d855dfbd5678e9cbf37c4751e9d0ee;p=website.git Switched to forcing UTF-8 for file reads. --- diff --git a/package.yaml b/package.yaml index 235ffa6..f7da016 100644 --- a/package.yaml +++ b/package.yaml @@ -38,6 +38,7 @@ dependencies: - tagsoup == 0.14.8 - text == 1.2.4.1 - warp == 3.3.14 +- with-utf8 == 1.0.2.2 default-extensions: - DataKinds diff --git a/src/Server.hs b/src/Server.hs index 1c1b57c..12404bd 100644 --- a/src/Server.hs +++ b/src/Server.hs @@ -12,7 +12,7 @@ import StyleSheet import qualified Clay as C import qualified Data.ByteString.Lazy as B import qualified Data.Text as T -import qualified Data.Text.IO as T +import qualified Data.Text.IO.Utf8 as T app :: Application app = serve apiProxy api