Giter Site home page Giter Site logo

GHCJS support about mmark HOT 12 CLOSED

srid avatar srid commented on August 23, 2024
GHCJS support

from mmark.

Comments (12)

mrkkrp avatar mrkkrp commented on August 23, 2024

How do you propose to solve this? Do we have a YAML library written in pure Haskell?

from mmark.

srid avatar srid commented on August 23, 2024

I haven't taken a look at how exactly YAML is being used in mmark, but at first glance I'd say by using a different library that is written in pure Haskell. This comes up: https://github.com/haskell-hvr/HsYAML

from mmark.

mrkkrp avatar mrkkrp commented on August 23, 2024

I’ll take a look.

from mmark.

mrkkrp avatar mrkkrp commented on August 23, 2024

Hmm, pure YAML implementation is good, but that one lacks Aeson compatibility and parse errors are plain Strings.

from mmark.

srid avatar srid commented on August 23, 2024

Time for a myaml library then? :-)

from mmark.

mrkkrp avatar mrkkrp commented on August 23, 2024

Heh, would be good to have something like HsYAML but with Megaparsec and Aeson-based ;)

from mmark.

srid avatar srid commented on August 23, 2024

I don't remember if I already asked you this, but would it be reasonable to make yaml an optional dependency of mmark (so that it can be used in GHCJS today)?

from mmark.

mrkkrp avatar mrkkrp commented on August 23, 2024

How will it work when yaml is disabled? Should it just ignore YAML blocks then?

from mmark.

srid avatar srid commented on August 23, 2024

from mmark.

mrkkrp avatar mrkkrp commented on August 23, 2024

I think ignoring the blocks would be a better idea because that doesn't lead to a conditional API.

from mmark.

benkolera avatar benkolera commented on August 23, 2024

@srid If you still care about this, I put in a PR #61 which I have working in a WIP obelisk implementation of the 'realworld'/conduit demo app in this commit: qfpl/reflex-realworld-example@e8eb779

from mmark.

mrkkrp avatar mrkkrp commented on August 23, 2024

Implemented in #61.

from mmark.

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.