diff options
Diffstat (limited to 'src/server/Config.hs')
-rw-r--r-- | src/server/Config.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/Config.hs b/src/server/Config.hs index f4144f7..9bc780f 100644 --- a/src/server/Config.hs +++ b/src/server/Config.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE FlexibleContexts #-} module Config @@ -20,9 +21,9 @@ data Config = Config , port :: Int } deriving (Read, Eq, Show) -getConfig :: FilePath -> IO (Either String Config) +getConfig :: FilePath -> IO (Either Text Config) getConfig filePath = - left show <$> (runErrorT $ do + left (T.pack . show) <$> (runErrorT $ do cp <- join $ liftIO $ readfile emptyCP filePath liftA2 Config |