Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
beingfranklin committed Dec 10, 2020
1 parent 4610d37 commit 29f6d2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,16 @@ main = do
putStrLn $ unlines names
_ -> syntaxErrorForIsGlobal
-- TODO More Query
putStrLn $ "\nPreparing to write into the JSON file "

putStrLn "\nPreparing to write into the JSON file... "
putStrLn "\nWriting ..."
jsonValue <- convertToJSON conn
writeFile "DB.json" (jsonValue)
writeFile "DB.json" jsonValue
putStrLn "\nFinished Writing!"


syntaxErrorForIsGlobal :: IO ()
syntaxErrorForIsGlobal = putStrLn
"Invalid Input\n\
"Invalid Input for the holiday type\n\
\\n\
\Please either enter Y or N\n"
\Please either enter Y or N next time\n"
2 changes: 1 addition & 1 deletion src/Database.hs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ holidayToSqlValues countries =
toSql $ fixed countries
]

-- |This function performs an action (ie. to insert the values into holidays)
-- | This function performs an action (ie. to insert the values into holidays)

prepareInsertRecordStmt :: Connection -> IO Statement
prepareInsertRecordStmt conn = prepare conn "INSERT INTO holidays VALUES (?,?)"
Expand Down

0 comments on commit 29f6d2b

Please sign in to comment.