Giter Site home page Giter Site logo

How to use catchLeft? about eff HOT 3 CLOSED

vivekkpai avatar vivekkpai commented on August 17, 2024
How to use catchLeft?

from eff.

Comments (3)

benhutchison avatar benhutchison commented on August 17, 2024

Hi vivek, the best place for "How do I do X with Eff?" is the gitter channel https://gitter.im/atnos-org/eff

I can't usefully comment on your problem without seeing some example code (even an incomplete sketch helps), I dont understand the DSLs well enough from this abstract description.

from eff.

vivekkpai avatar vivekkpai commented on August 17, 2024

Thanks Ben. I understand.

I will follow up there. Attached is some sample code.

The DSL here does nothing except raise an exception during interpretation. This is wrapped in a fromEither(Either.catchNonFatal(...)) call. This code is in Except.txt.

The usage of the DSL is in DSLUser.txt. In that the program is in the function program. Here we want to "catch" the left using catchLeft. If all goes well, it will print "Exception caught". However, it does not print anything and the handler never gets called.
DSLUser.txt
Except.txt

from eff.

etorreborre avatar etorreborre commented on August 17, 2024

@vivekkpai I am closing this issue here, please continue the discussion on gitter.

from eff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.