How can I avoid writing boilerplate code for functions performing pattern matching?

前端 未结 3 657
逝去的感伤
逝去的感伤 2021-02-14 13:54

In this response to another question, a little Haskell code sketch was given which uses wrapper functions to factor out some code for doing syntax checking on command line argum

3条回答
  •  梦谈多话
    2021-02-14 14:49

    You might want to make use of existing libraries to deal with command line arguments. I believe the de-facto standard right now is cmdargs, but other options exist, such as ReadArgs and console-program.

提交回复
热议问题