This commit is contained in:
hasufell 2014-10-05 15:57:18 +02:00
parent f46d47c827
commit 5976ba984e
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
2 changed files with 2 additions and 4 deletions

View File

@ -5,6 +5,4 @@ import System.Environment
main :: IO ()
main = do
a <- getArgs
case null a of
False -> makeGUI (head a)
True -> makeGUI ""
makeGUI (if null a then head a else "")

View File

@ -17,7 +17,7 @@ newtype Parser a = MkParser { runParser :: String -> Maybe (a, String) }
-- |Functor instance.
instance Functor Parser where
fmap f p = (inParser . fmap . fmap . first $ f) p
fmap = inParser . fmap . fmap . first
-- |Applicative functor instance.
instance Applicative Parser where