Closed rupertlssmith closed 5 years ago
This is not valid Elm syntax:
type Singleton = Singleton String (Singleton val) = Singleton "test"
but this is:
val = let (Singleton innerVal) = Singleton "test" in innerVal
The only pattern that should be allowed at top-level is varPattern.
varPattern
Should remove patternDecl and replace it with valueDecl - which is like a funDecl but with no arguments.
patternDecl
valueDecl
funDecl
This is not valid Elm syntax:
but this is: