...

Hask что это за программа

Welcome to Hask3’s documentation!¶

This is a fork for the original project hask for Python 3.4+ (see the our Travis CI builds to get the full list of supported versions).

  • Overview
    • Features
    • hask3.lang.hindley_milner – Hindley-Milner type-checking and inference
    • hask3.lang.lazylist – A lazy List
    • hask3.lang.syntax – The “syntactic” elements to build Hask programs
    • hask3.lang.type_system – The implementation of the type system
    • hask3.lang.typeclasses – The standard type classes
    • hask3.Control.Applicative – The Applicative type class
    • hask3.Control.Monad – The Monad type class
    • hask3.Data.Char – The Data.Char
    • hask3.Data.Either – The Data.Either
    • hask3.Data.Eq – The Data.Eq
    • hask3.Data.Foldable – The Data.Foldable
    • hask3.Data.Functor – The Data.Functor
    • hask3.Data.List – The Data.List
    • hask3.Data.Maybe – The Data.Maybe
    • hask3.Data.Monoid – The Data.Monoid
    • hask3.Data.Num – The Data.Num
    • hask3.Data.Ord – The Data.Ord
    • hask3.Data.Ratio – The Data.Ratio
    • hask3.Data.String – The Data.String
    • hask3.Data.Traversable – The Data.Traversable
    • hask3.Data.Tuple – The Data.Tuple
    • hask3.Python.builtins – Python builtins as Hask functions
    • Beta series: 0.x

    Indices and tables¶

    © Copyright 2018, Bill Murphy. Revision e2c84575 .

    Built with Sphinx using a theme provided by Read the Docs.
    Read the Docs v: latest

    Versions latest stable Downloads htmlzip On Read the Docs Project Home Builds Free document hosting provided by Read the Docs.

    hask
    Tag v1.7.0

    Hask is a framework which implements the Flux-Architecture designed by Facebook. It is implement in ES6 to guarantee you a 100% integration into newer version of node. It is compatible with Node.js (ES5, ES6) but also with the Browser. It helps you writing asynchron applications without breaking your head and giving you a clean strucutre with Dispatchers.

    You can install hask via NPM (Node Package Manager) via your systems command line interface if you’d like to use it as a Node.js dependency. Additionaly hask is avaible on bower since 2016 to enable you a stress-free install as a frontend dependency. The installations is pretty easy, just take a look below!

    npm install hask --save bower install hask --save 

    If you decide to use hask within the browser, it is recommended to install it via bower and include the minified export under /dist . If you’re planning to use hask with node and you’re using a node environement which fully supports ES6, you can install the package via NPM and use the file /platforms/es6 . If you want to use the ES5 version, just simply require(‘hask’) .

    # Download the latest code from GitHub git clone https://github.com/janbiasi/hask.git cd hask # Install Node.js dependencies npm install # Using Gulp to build gulp

    Supported Node.js Versions

    Adjusting Build Process

    If you want to adjust the whole building process — you can. Please visit the NPM or the GitHub repository of the few tasks in the gulpfile to get more information about them and their usage as well as configuration — thanks!

    Class Description
    StateMachine A Manager for Dispatcher, Store, Constants and Actions
    Dispatcher Handle payloads and delegate to the right action
    Store Watchable Object to get notified about changes

    If you’re using Node.js to work with hask, you can use the default required keyword to render the hask module.

    import < Store, Dispatcher, StateMachine as Machine > from 'hask/platforms/es6'; const Store = new Store(); const Dispatcher = new Dispatcher(); const Machine = new Machine();

    Using hask in the browser is pretty easy, it’s global accessible via the window in your webapplication.

    var Dispatcher = new Hask.Dispatcher(); var Machine = new Hask.StateMachine(); var Store = new Hask.Store();
    const Hask = require('hask'); const Store = new Hask.Store(); const Machine = new Hask.StateMachine(< ADD: 'this is the add constant', REMOVE: 'this is the remove event' >); Store.set('value', 0); Machine.Constants.ADD = 'this content will not be set'; Machine.Constants.ADD // this is the add . Machine.receive(payload => < switch(payload.target) < case Machine.Constants.ADD: Store.update('value', Store.get('value') + 1); break; case Machine.Constants.REMOVE: Store.update('vaue', Store.get('value') - 1); break; /* case . */ default: break; > >); $('.btn-up').on('click', function(ev) < Machine.send(< target: Machine.Constants.ADD, event: ev >); >); /* more listeners . */ . 

    View full and complex examples

    Stats

    Dependent repositories 1 Total tags 10 Latest tag Sep 8, 2016 First tag Jun 24, 2015 Stars 2 Forks 0 Watchers 1 Contributors 1 Repository size 1.34 MB SourceRank 8

    Development practices

    Source repo 2FA enabled TEXT! Package manager 2FA enabled TEXT! Is security responsive TEXT! Dependencies are managed TEXT! Issue-free release available TEXT! Succession plan available TEXT! Package manager 2FA enabled TEXT!

    The Tidelift Subscription provides access to a continuously curated stream of human-researched and maintainer-verified data on open source packages and their licenses, releases, vulnerabilities, and development practices.

    Welcome to Hask3’s documentation!¶

    This is a fork for the original project hask. We’re naming it hask3 because we’re intending this project to be used exclusively in Python 3.4+.

    Most of the code of this project is still from the original authors.

    Python 2.7 support is being dropped.

    We officially support only Python 3.4+ (see the our Travis CI builds to get the full list of supported versions), even though the original project only supports Python 2.7.

    We keep the code running in Python 2.7 as the baseline, but Python 2.7 is not supported and it may become broken at any time.

    • Overview
      • Features
      • hask.lang.hindley_milner – Hindley-Milner type-checking and inference
      • hask.lang.lazylist – A lazy List
      • hask.lang.syntax – The “syntactic” elements to build Hask programs
      • hask.lang.type_system – The implementation of the type system
      • hask.lang.typeclasses – The standard type classes
      • hask.Control.Applicative – The Applicative type class
      • hask.Control.Monad – The Monad type class
      • hask.Data.Char – The Data.Char
      • hask.Data.Either – The Data.Either
      • hask.Data.Eq – The Data.Eq
      • hask.Data.Foldable – The Data.Foldable
      • hask.Data.Functor – The Data.Functor
      • hask.Data.List – The Data.List
      • hask.Data.Maybe – The Data.Maybe
      • hask.Data.Monoid – The Data.Monoid
      • hask.Data.Num – The Data.Num
      • hask.Data.Ord – The Data.Ord
      • hask.Data.Ratio – The Data.Ratio
      • hask.Data.String – The Data.String
      • hask.Data.Traversable – The Data.Traversable
      • hask.Data.Tuple – The Data.Tuple
      • hask.Python.builtins – Python builtins as Hask functions
      • Beta series: 0.x

      При подготовке материала использовались источники:
      https://hask.readthedocs.io/
      https://libraries.io/bower/hask
      https://hask.readthedocs.io/en/stable/

Оцените статью