Quantcast
Channel: Is it possible to define type with callable objects in Haskell? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by mergeconflict for Is it possible to define type with callable...

It's good that you're familiar with the C++"function object" concept, because that's a good introduction to Haskell's idea of what you can do with plain old functions... Specifically, currying, partial...

View Article



Answer by hugomg for Is it possible to define type with callable objects in...

Yes, in Haskell you can't have callable objects as that would mess up type-inference a lot. You will have to give explicit names to your functions, just like in OO languages that don't support __call__...

View Article

Answer by Adam Wagner for Is it possible to define type with callable objects...

I may get my terminology wrong here, as I am no Haskell veteran myself. However, from my understanding of Haskell:As Haskell is not object-oriented, it does not have objects or instances (in the...

View Article

Is it possible to define type with callable objects in Haskell?

I'm quite new to haskell and not too comfortable with it's type system yet. And I wondering, if there is ability to define the type (datatype?), which instances can be called as functions?Analogues are...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images