lowerCase UpperCase

Is it correct to assume that:

  • UpperCase is used for
  • types for example type Model
  • lowerCase is used for
  • type variables for example List a
  • functions for exampl add =

Is this mandatory or convention?
Is the above list complete?

It is mandatory, the compiler will tell you if you make some mistake.

There is one small exeption that is not included in your list: Record Constructors start with an uppercase (though they are functions):

type alias MyRecord =
  { name : String
  , age : Int
  }

user : String -> Int -> MyRecord
user name age =
    MyRecord name age

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.