Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 549 Bytes

File metadata and controls

33 lines (18 loc) · 549 Bytes

Module Documentation

Module Halogen.Mixin.Router

This module provides helper functions for working with URL hashes.

Hash

newtype Hash

A type-safe wrapper for the hash component of a URL

runHash

runHash :: Hash -> String

Unwrap a Hash to get a String.

onHashChange

onHashChange :: forall i eff. (Hash -> i) -> Driver i eff -> Eff (HalogenEffects eff) Unit

Listen for hash change events, and provide an input to the driver function when one occurs.