Package

purescript-halogen

Repository
purescript-halogen/purescript-halogen
License
Apache-2.0
Uploaded by
flip111
Published on
2022-05-02T13:42:21Z

Latest release CI

Halogen is a type-safe library for building user interfaces in PureScript.

  • Declarative Write simple views for each state in your application, and Halogen will efficiently and intelligently update the right components and re-render your user interface.
  • Component Architecture Write encapsulated components which manage their own state, and compose them together to build complex user interfaces. Or, use a single component to implement an Elm-like architecture.
  • Entirely PureScript Halogen and its virtual DOM implementation are written in PureScript. Halogen's performance and bundle sizes are roughly equivalent to popular JavaScript UI libraries like React and Angular.

Read the documentation to learn how to use Halogen in your own projects.

Installation

Install Halogen with Spago:

spago install halogen

Or create a new Halogen app from a template.

Documentation

You can find the Halogen documentation on the documentation site or in the docs folder. Documentation is divided into several categories:

We also recommend these community resources for learning how to use Halogen in your applications:

There are several ways to get help if you get stuck using Halogen:

Examples

This repository contains several self-contained examples, ranging from a basic button to controlling external components.

You may also want to review the Real World Halogen example application, which demonstrates routing, state management, authentication, making requests, and other real world examples with commented explanations.

Contributing

The main purpose of this repository is to continue evolving Halogen, making it faster and easier to use. Halogen is developed in the open on GitHub and we're grateful for community-contributed bugfixes and improvements.

You can take part in improving Halogen by opening or participating in issues, opening pull requests to add new features, documentation, or tests, and by helping other Halogen users on Discord and Discourse.

License & Credits

Halogen is licensed under the Apache License 2.0. The Halogen logo was designed by Matthew Park.

Modules
Halogen
Halogen.Aff
Halogen.Aff.Driver
Halogen.Aff.Driver.Eval
Halogen.Aff.Driver.State
Halogen.Aff.Util
Halogen.Component
Halogen.Component.Profunctor
Halogen.Data.OrdBox
Halogen.Data.Slot
Halogen.HTML
Halogen.HTML.Core
Halogen.HTML.Elements
Halogen.HTML.Elements.Keyed
Halogen.HTML.Events
Halogen.HTML.Properties
Halogen.HTML.Properties.ARIA
Halogen.Query
Halogen.Query.ChildQuery
Halogen.Query.Event
Halogen.Query.HalogenM
Halogen.Query.HalogenQ
Halogen.Query.Input
Halogen.VDom.Driver
Dependencies