News for hackers. Stuff that matters.
Re:Basic Type-Level Programming in Haskell by Xophmeister on Friday April 28, 2017 @11:01AM (#14219904)
I'm not an experienced Haskell programmer, but I've never seen someone use different names for the type and the type constructor, as in:

    data IntAndChar = MkIntAndChar Int Char
They belong to different namespaces, so you can use the same name:

    data IntAndChar = IntAndChar Int Char
Indeed, I believe this is preferred as it reduces the programmer's cognitive load.
Re:Basic Type-Level Programming in Haskell by weavie on Friday April 28, 2017 @11:19AM (#14220070)
This seems to be the convention in Idris where

  data IntAndChar = IntAndChar Int Char
would not compile with

  Main.IntAndChar already defined.
Re:Basic Type-Level Programming in Haskell by efnx on Friday April 28, 2017 @11:07AM (#14219970)
It's common convention to keep them the same, but in this case it may be useful to distinguish between the type and the term level value.
Re:Basic Type-Level Programming in Haskell by runeks on Sunday April 30, 2017 @02:25AM (#14230394)
In this case, I think the different name for the constructor was chosen specifically to show the difference between the term and type level. I think it's a good idea, when explaining Haskell, to not assume that no one gets confused by the constructor and type having the same name (it confused me to begin with).