diff options
| author | Andrew <saintruler@gmail.com> | 2020-11-27 18:06:40 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-11-27 18:06:40 +0400 |
| commit | 463665e8a91e8b0611c3e8413842182c67d3ea3d (patch) | |
| tree | 3779b3eb792e1e0e8a636be3c182f13206fefc8f /Main.hs | |
| parent | 1cc6cfef971ccb3c1d70f2a5570e445556e4f6fb (diff) | |
Changed String to Text everywhere
Diffstat (limited to 'Main.hs')
| -rw-r--r-- | Main.hs | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |