开发者

Options for pure-number module namespace?

开发者 https://www.devze.com 2023-01-18 21:31 出处:网络
It seems a pure-number module namespace like module 2010.Foo where is not allowed. On开发者_高级运维e not so pretty option would be

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

精彩评论

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