From 4ecd860ee1d855dfbd5678e9cbf37c4751e9d0ee Mon Sep 17 00:00:00 2001 From: sabadev Date: Sat, 24 Apr 2021 23:42:08 -0400 Subject: [PATCH] Switched to forcing UTF-8 for file reads. --- package.yaml | 1 + src/Server.hs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1