O'Reilly logo

Haskell Cookbook by Yogesh Sajanikar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

In this recipe, we uses the simplelocalnet backend to start both master and slave nodes. We then created a table using template Haskell based on the remoteable macro. In this table, we registered all the functions (resulting in Process) that need to be serialized across.

Cloud Haskell uses the static pointer extension, which allows Cloud Haskell to find a fingerprint of a function and then compose the serializable arguments along with the fingerprint. On the remote node, using the information contained in the closure, it is possible for the remote node to recreate the function call with arguments. The static pointer extension, however, can only be used for rank-1 types. For higher ranks, Cloud Haskell converts it in to the  ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required