@hackage partial-semigroup0.4.0.0

A partial binary associative operator

  • Installation

  • Dependencies (2)

  • Dependents (2)

    @hackage/partial-semigroup-hedgehog, @hackage/partial-semigroup-test
  • Package Flags

      semigroup-in-base
       (on by default)

      Require a version of base that provides the Data.Semigroup and Data.List.NonEmpty modules.

      Disabling this flag adds a dependency on the semigroups package.

      identity-in-base
       (on by default)

      Require a version of base that provides the Data.Functor.Identity module.

      generics-in-base
       (on by default)

      Require a version of base that provides the GHC.Generics module.

      Disabling this flag removes the Data.PartialSemigroup.Generics module from the package.

      enable-hedgehog
       (on by default)

      Use the hedgehog package for tests.

      Disabling this flag disables all of the tests that use hedgehog.

      enable-doctest
       (on by default)

      Use the doctest package to test the code examples in Haddock comments.

A partial semigroup is like a semigroup, but the operator is partial. We represent this in Haskell as a total function (<>?) :: a -> a -> Maybe a.