Fixes to readEither

parent 0b1cd960
......@@ -31,7 +31,7 @@ defaultClientEnv uri = do
let uriPort' =
if uriPort == ""
then Right port
else (readEither (T.tail $ T.pack uriPort) :: Either Text Int)
else (readEither (T.unpack $ T.tail $ T.pack uriPort) :: Either [Char] Int)
manager <- newManager managerSettings
let env' = mkClientEnv manager $ BaseUrl proto uriRegName (fromRight 80 uriPort') ""
let makeClientRequest bu req =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment