[clean-list] What does the L mean in the expression: : CloudsVertVisibility = L [CloudsVV] | SkyClear

metaperl metaperl at gmail.com
Mon Aug 25 21:34:52 MEST 2008




metaperl wrote:
> 
> I dont understand what the "L" means below. I'm guessing it is a type
> constructor for CludsVertVisibility which takes one argument... Just like
> "SkyClear" is a nullary type constructor.
> 
> 

Yeah, that's clearly what it is. If you look at the instance code you see
pattern matching based on that very same "L" and SkyClear:

instance report CloudsVertVisibility
where	report SkyClear	=  ">05000"
		report (L cs) = case getCeilings cs of
			[]	-> ">05000"
			cs	# visibility = minList cs
				-> " " +++ toDigits visibility 5

-- 
View this message in context: http://www.nabble.com/What-does-the-L-mean-in-the-expression%3A-%3A-CloudsVertVisibility-%3D-L--CloudsVV--%7C-SkyClear-tp19149990p19150148.html
Sent from the Clean mailing list archive at Nabble.com.



More information about the clean-list mailing list