Hoogle Search
Within LTS Haskell 24.64 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
pathCentroid :: forall (v :: Type -> Type) n . (Metric v, OrderedField n) => Path v n -> Point v ndiagrams-lib Diagrams.Path Compute the centroid of a path (i.e. the average location of its vertices; see pathVertices).
centroid :: forall (v :: Type -> Type) n . (Additive v, Fractional n) => [Point v n] -> Point v ndiagrams-lib Diagrams.Points The centroid of a set of n points is their sum divided by n. Returns the origin for an empty list of points.
_Void :: forall s a p f . (Choice p, Applicative f) => p a (f Void) -> p s (f s)diagrams-lib Diagrams.Prelude Void is a logically uninhabited data type. This is a Prism that will always fail to match.
-
diagrams-lib Diagrams.Prelude alongside makes a Lens from two other lenses or a Getter from two other getters by executing them on their respective halves of a product.
>>> (Left a, Right b)^.alongside chosen chosen (a,b)
>>> (Left a, Right b) & alongside chosen chosen .~ (c,d) (Left c,Right d)
alongside :: Lens s t a b -> Lens s' t' a' b' -> Lens (s,s') (t,t') (a,a') (b,b') alongside :: Getter s a -> Getter s' a' -> Getter (s,s') (a,a')
aside :: APrism s t a b -> Prism (e, s) (e, t) (e, a) (e, b)diagrams-lib Diagrams.Prelude Use a Prism to work over part of a structure.
-
diagrams-lib Diagrams.Prelude Field rules for fields whose names are to be used verbatim, with no prefixes, no underscores, no transformations of any kind.
-
diagrams-lib Diagrams.Prelude A FieldNamer for classIdFields.
darkorchid :: (Ord a, Floating a) => Colour adiagrams-lib Diagrams.Prelude No documentation available.
-
diagrams-lib Diagrams.Prelude Generate overloaded field accessors, using exactly the same names as the underlying fields. Intended for use with the NoFieldSelectors and DuplicateRecordFields language extensions. As an example:
data Foo a = Foo { x :: Int, y :: a } newtype Bar = Bar { x :: Char } makeFieldsId ''Foo makeFieldsId ''Barwill create classesclass HasX s a | s -> a where x :: Lens' s a class HasY s a | s -> a where y :: Lens' s a
together with instancesinstance HasX (Foo a) Int instance HasY (Foo a) a where instance HasX Bar Char where
makeFieldsId = makeLensesWith classIdFields
mediumorchid :: (Ord a, Floating a) => Colour adiagrams-lib Diagrams.Prelude No documentation available.