Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

hlint hello

  • Loading branch information...
commit 78d98736c51aec025c8eab07589beb19023494f2 1 parent a506eff
@tianyicui authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  ch1/Makefile
  2. +1 −1  ch1/hello.hs
View
1  ch1/Makefile
@@ -1,4 +1,5 @@
%.exe: %.hs
ghc --make -o $@ $<
+ hlint $<
ALL: hello.exe
View
2  ch1/hello.hs
@@ -3,4 +3,4 @@ import System.Environment (getArgs)
main :: IO ()
main = do args <- getArgs
- putStrLn ("Hello, " ++ args !! 0)
+ putStrLn $ "Hello, " ++ head args
Please sign in to comment.
Something went wrong with that request. Please try again.