[Haskell-beginners] Why must inflix constructors begin with a colon?

Olumide 50295 at web.de
Thu Dec 31 12:52:44 UTC 2015


I'm new to Haskell and wondering why this restriction?

For example (from LYH):

infixr 5 :-:
data List a = Empty | a :-: (List a) deriving (Show, Read, Eq, Ord)

Thanks,

- Olumide



More information about the Beginners mailing list