[Haskell-cafe] Re: Field names

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Wed Sep 10 11:54:43 EDT 2008


On 2008 Sep 10, at 8:53, Bulat Ziganshin wrote:
> Wednesday, September 10, 2008, 4:07:41 PM, you wrote:
>> Do you have any reference for that use of infixing
>> constructors by start their name with ':'? That's
>> interesting, and I didn't know about it.
>
> really? ;)
>
> sum (x:xs) = x + sum xs
> sum []     = 0


I think that only counts as the origin of the idea; isn't :-prefixed  
infix constructors a ghc-ism?

http://www.haskell.org/ghc/docs/latest/html/users_guide/data-type-extensions.html#infix-tycons

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




More information about the Haskell-Cafe mailing list