summaryrefslogtreecommitdiff
path: root/Main.hs
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-11-27 18:06:40 +0400
committerAndrew <saintruler@gmail.com>2020-11-27 18:06:40 +0400
commit463665e8a91e8b0611c3e8413842182c67d3ea3d (patch)
tree3779b3eb792e1e0e8a636be3c182f13206fefc8f /Main.hs
parent1cc6cfef971ccb3c1d70f2a5570e445556e4f6fb (diff)
Changed String to Text everywhere
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Main.hs b/Main.hs
index 86bc37e..aefc95c 100644
--- a/Main.hs
+++ b/Main.hs
@@ -1,5 +1,7 @@
module Main where
+import qualified Data.Text as T
+
import Web.Response
import Web.Request
import Web.Router
@@ -7,9 +9,9 @@ import Web.Views
import Web.Utils
import Web.Http
-table = [ Route indexGet "/" GET
- , Route helloGet "/hello" GET ]
+table = [ Route indexGet (T.pack "/") GET
+ , Route helloGet (T.pack "/hello") GET ]
main = do
- response <- resolve table (Request [] "/hello" GET)
+ response <- resolve table (Request [] (T.pack "/hello") GET)
print $ response \ No newline at end of file