hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.5K
active users

Are there any rules or conventions around #haskell module names?
I can't seem to find anything?

Is there any reason why it'd be a bad idea to have a module name start with a digit?

Boyd Stephen Smith Jr.

@hungryjoe haskell.org/onlinereport/haske

> A module name (lexeme modid) is a sequence of one or more identifiers beginning with capital letters, separated by dots, with no intervening spaces. For example, Data.Bool, Main and Foreign.Marshal.Alloc are all valid module names.

> modid → {conid .} conid (modules)

www.haskell.org5 Modules

@hungryjoe haskell.org/onlinereport/haske

> conid → large {small | large | digit | ' }

So, it's not allowed. They have to start with an uppercase (or titlecase) unicode character -- I'm pretty sure no digits qualify.

www.haskell.org2 Lexical Structure