[Haskell-beginners] Questions on type declarations

thorsopia at lavabit.com thorsopia at lavabit.com
Sat Oct 6 01:55:51 CEST 2012


Could you comment on the following type declarations?

 - getArgs :: IO [String]

   It can get several params, but its type declaration looks like it gets

 - dispatch :: [(String, [String] -> IO ())] [1]

   I don't know how to read this one. It looks bizarre.

[1] http://learnyouahaskell.com/input-and-output#files-and-streams

More information about the Beginners mailing list