开发者

Options for pure-number module namespace?

It seems a pure-number module namespace like

module 2010.Foo where

is not allowed.

On开发者_高级运维e not so pretty option would be

module V2010.Foo where

Can you suggest other options?


Module names must start with a capital letter. The module name must also be the same as the file name, so as far as module naming goes you really only have one option: start the name with a capital letter.


Is V2010 meant to represent a version number?

If so, you should probably handle versioning through Cabal and not in the module namespace directly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜