Checks the file extension before attempting to read the file. Also allow empty argument list.
@@ -4,5 +4,7 @@ import System.Environment
main :: IO ()
main = do
[a] <- getArgs
startGUI a
a <- getArgs
case null a of
False -> startGUI (head a)
True -> startGUI ""
The note is not visible to the blocked user.