Permalink
Browse files

Fixed duplicate name.

  • Loading branch information...
1 parent 8542612 commit a5f90ec63caa904cf60f476518860047553871a0 @jgm committed Mar 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gitit2.hs
View
@@ -174,10 +174,10 @@ samplePlugin = Plugin $ \wp -> do
main :: IO ()
main = do
- settings <- getDataFileName "settings.yaml"
+ settingsFile <- getDataFileName "settings.yaml"
-- TODO allow command line specification of settings file
-- let the data file provide defaults
- res <- decodeEither `fmap` B.readFile settings
+ res <- decodeEither `fmap` B.readFile settingsFile
conf <- case res of
Left e -> err 3 $ "Error reading configuration file.\n" ++ e
Right x -> parseMonad parseConfig x

0 comments on commit a5f90ec

Please sign in to comment.