HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleapecs-0.10.1Haskell2010

Apecs.Experimental.Components

This module is experimental, and its API might change between point releases. Use at your own risk. -

  • 2 types
  • Packageapecs-0.10.1
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceComponents.hs
datadata Redirect c
#

Pseudocomponent that when written to, actually writes c to its entity argument. Can be used to write to other entities in a cmap.

Constructors

Instances5Has, Eq, Show, Component, Storage
  • Has w m c => Has w m (Redirect c)Defined in apecs-0.10.1 · Apecs.Experimental.Components
  • Eq c => Eq (Redirect c)Defined in apecs-0.10.1 · Apecs.Experimental.Components
  • Show c => Show (Redirect c)Defined in apecs-0.10.1 · Apecs.Experimental.Components
  • Component c => Component (Redirect c)Defined in apecs-0.10.1 · Apecs.Experimental.Components
  • type Storage (Redirect c) = RedirectStore (Storage c)Defined in apecs-0.10.1 · Apecs.Experimental.Components
newtypenewtype Head c
#

Pseudocomponent that can be read like any other component, but will only yield a single member when iterated over. Intended to be used as cmap $ Head (...) -> ...

Constructors

Instances5Has, Eq, Show, Component, Storage
  • Has w m c => Has w m (Head c)Defined in apecs-0.10.1 · Apecs.Experimental.Components
  • Eq c => Eq (Head c)Defined in apecs-0.10.1 · Apecs.Experimental.Components
  • Show c => Show (Head c)Defined in apecs-0.10.1 · Apecs.Experimental.Components
  • Component c => Component (Head c)Defined in apecs-0.10.1 · Apecs.Experimental.Components
  • type Storage (Head c) = HeadStore (Storage c)Defined in apecs-0.10.1 · Apecs.Experimental.Components