Giter Club home page Giter Club logo

haste-todomvc's Introduction

Haste TodoMVC Example

Haste is a dialect of the Haskell programming language geared towards web applications. Haste supports the full Haskell language, including most GHC extensions but comes with a different set of standard libraries, implementing native support for modern web technologies such as WebSockets, LocalStorage, Canvas and others.

Haste Website

Learning how to use Haste

The Haste Website is a great resource for getting started.

Here are some links you may find helpful:

Implementation

How is the app structured? Are there deviations from the spec? If so, why? Since this is not a conventional JavaScript application and but is written in Haskell instead. The application logic likes in src directory.

  • src/Data/Todo.hs: Defines the relevant data structures.
  • src/Todo/DOM.hs: Defines DOM interactions and most of the business logic.
  • src/Todo.hs: Initializes the application.

Currently, out of MVC we don't really emulate a C but just M and V. V has the logic of controller, router and view are all tangled in DOM.hs.

Running

A recently built app will be available on the branch gh-pages. To run the app, spin up an HTTP server at any port and visit http://localhost:port/.

To make changes you'll need to have haste-compiler installed (hastec available in your PATH). To build run: bower install and then make

Credit

haste-todomvc's People

Contributors

crodjer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.