(!! 0) = head
This commit is contained in:
parent
e8022b4e89
commit
098a991e28
|
@ -6,6 +6,6 @@ import Link.Server
|
|||
|
||||
main :: IO ()
|
||||
main = do
|
||||
port <- fmap (read . (!! 0)) getArgs
|
||||
port <- fmap (read . head) getArgs
|
||||
runServer port
|
||||
|
||||
|
|
Loading…
Reference in New Issue