News for hackers. Stuff that matters.
Re:Translating Haskell to C++ metaprogramming by gizmo686 on Sunday July 12, 2015 @10:09PM (#9875981)

    contains :: (NameClass, QName) -> Bool
is valid Haskel, and denotes that "contains" is a function that takes a tuple and returns a bool. As a matter of style, Haskellers tend to avoid writing function like this, and prefer to write functions like

    contains :: NameClass -> (QName -> Bool)
which indicates that "contains" is a function that takes a "NameClass" and returns another function. Because this pattern is so common in Haskell, -> is defined to be right-associative, so the paranthese can be omited.

There are no comments on this comment yet.