[Haskell-beginners] What is operator :| ?
Tony Morris
tmorris at tmorris.net
Fri Mar 28 06:41:26 UTC 2014
It is the constructor for a non-empty list (Data.List.NonEmpty).
http://hackage.haskell.org/package/semigroups-0.12.2/docs/Data-List-NonEmpty.html
On Fri, Mar 28, 2014 at 3:54 PM, John M. Dlugosz
<ngnr63q02 at sneakemail.com>wrote:
> http://www.haskell.org/haskellwiki/Typeclassopedia under §8.1,
>
> sconcat = sconcat (a :| as) = go a as where
>
> What is the meaning of :| ?
> I see it is really in the cited module source, not a typo on the page.
>
> More generally, is there some effective way to search for non-alphabetical
> Haskell things? Google just ignores the "punctuation".
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140328/4e59627b/attachment.html>
More information about the Beginners
mailing list