From 53aed9b24d6e375fde2cb504133ca7543d9c025d Mon Sep 17 00:00:00 2001 From: Harry Sarson Date: Wed, 5 Aug 2020 21:53:59 +0100 Subject: [PATCH] clarify that a var name may refer to a type I am confident this is how we use VarName's internally already as I found this snippet from the Elm.Data.Exposing module: type ExposedItem = ExposedValue VarName -- exposing (foo) | ExposedType VarName -- exposing (Foo) | ExposedTypeAndAllConstructors VarName -- exposing (Foo(..)) --- src/Elm/Data/VarName.elm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Elm/Data/VarName.elm b/src/Elm/Data/VarName.elm index 8263a64a..03f6e8f4 100644 --- a/src/Elm/Data/VarName.elm +++ b/src/Elm/Data/VarName.elm @@ -1,9 +1,10 @@ module Elm.Data.VarName exposing (VarName) -{-| Variable name, eg. the `x` in +{-| Variable name or a type name, eg. the 'A' and the `x` in + foo : A foo = - x + 1 + bar x @docs VarName