GithubHelp home page GithubHelp logo

tryreflex's Introduction

tryReflex

functional reactive programming (FRP) with Haskell

I thought Haskell might be more fun to learn if we tried to build a website. There is not much documentation, just a few quickreferences, [1, 2] the source code iself and off you go. There are lots and lots and lots of monads (3, 4 )(at least not for the programmer).

Also, the Elm compiler is written in Haskell and compiles Elm language files into JavaScript in a reliable way.

Elm is a functional programming language, but it does not use monads And it is almost exclusively about web programming. Haskell can be used for web or desktop. It can be used in front-end or back-end. Can even chomp up substantial backend computations and do them in the web browser.

Here's a sample of the difference between Elm and Haskell (by design);

  • Haskell seems to prefer infix operators such as !! and $ while Elm prefers to put the operator in front
  • + 2 3 vs.  2 + 3
  • As just stated, Haskell uses monads liberally and therefore Reflex uses (several monads) to build websites and user interactions as a by-product of more abstract (monadic) computations. Elm models the signals directly.
  • el "div" abstractly creates a div element but also places one on the page.  div [] [] represents the div element itself and you are passing the signals through the Elm architecture.
  • Reflex documenation is improving. The main goal would be to understand the 3 monads that reflex defines: Event, the Behavior and the Dynamic.

None of the applications of these are useful. Purely test-driving the language. Demo

tryreflex's People

Contributors

mango314 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

katychuang

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.