homepage: https://github.com/sheaf/acts
changelog-type: markdown
hash: ff0df6b4f2cbf4ae1805d8f6053e2423d417f28f1e90c59e581ddb3db0baa370
test-bench-deps: {}
maintainer: Sam Derbyshire
synopsis: Semigroup actions, groups, and torsors.
changelog: "# Changelog for package `acts`\r\n\r\n## 0.1.0.0 ( February 2020 )\r\n\r\n*
  Initial release.\r\n"
basic-deps:
  generic-data: ! '>=0.6.0.1 && <0.7.0.0'
  base: ! '>=4.12 && <4.15'
  deepseq: ^>=1.4.4.0
  finite-typelits: ^>=0.1.4.2
all-versions:
- 0.1.0.0
author: Sam Derbyshire
latest: 0.1.0.0
description-type: haddock
description: |-
  Acts and torsors model types which can be transformed under the action of another type.

  A prototypical example is affine space, which has an action by translation:
  given any two points in affine space, there is a unique translation that brings one to the other.

  This can be useful in a library keeping track of time: on top of needing to keep track
  of units, one also needs to distinguish between absolute time (time stamps) and relative time
  (time differences).
  The operations one expects in this situation are:

  * Addition and subtraction of time differences: time differences form a (commutative) group.
  * Translation of an absolute time by a time difference: there is an action of relative time on absolute time.
  * Given two absolute times, one can obtain the time difference between them: absolute time is a torsor under relative time.

  This library provides a convenient framework which helps to avoid mixing up these two different notions.


  A fleshed out example is available at "Acts.Examples.MusicalIntervals",
  which showcases the use of actions and torsors in the context of musical intervals and harmony.
  It also demonstrates common usage patterns of this library, such as how to automatically derive instances.

  See also the [project readme](https://github.com/sheaf/acts),
  which includes a simple example with 2D affine space.
license-name: BSD-3-Clause

Update from Hackage at 2020-02-13T14:46:17Z
Update from Hackage at 2020-02-13T14:46:17Z
