Hoogle Search

Within LTS Haskell 24.40 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. PolyRegular :: Int -> n -> PolyType n

    diagrams-lib Diagrams.TwoD.Polygons

    A regular polygon with the given number of sides (first argument) and the given radius (second argument).

  2. PolySides :: [Angle n] -> [n] -> PolyType n

    diagrams-lib Diagrams.TwoD.Polygons

    A polygon determined by the distance between successive vertices and the external angles formed by each three successive vertices. In other words, a polygon specified by "turtle graphics": go straight ahead x1 units; turn by external angle a1; go straight ahead x2 units; turn by external angle a2; etc. The polygon will be centered at the centroid of its vertices.

    • The first argument is a list of vertex angles, giving the external angle at each vertex from the previous vertex to the next. The first angle in the list is the external angle at the second vertex; the first edge always starts out heading in the positive y direction from the first vertex.
    • The second argument is a list of distances between successive vertices.
    To construct an n-gon, use a list of n-2 angles and n-1 edge lengths. Extra angles or lengths are ignored.

  3. data PolyType n

    diagrams-lib Diagrams.TwoD.Polygons

    Method used to determine the vertices of a polygon.

  4. data PolygonOpts n

    diagrams-lib Diagrams.TwoD.Polygons

    Options for specifying a polygon.

  5. PolygonOpts :: PolyType n -> PolyOrientation n -> Point V2 n -> PolygonOpts n

    diagrams-lib Diagrams.TwoD.Polygons

    No documentation available.

  6. type P2 = Point V2

    diagrams-lib Diagrams.TwoD.Types

    No documentation available.

  7. module Test.Syd.Validity.GenValidity.Property

    Tests for GenValidity instances

  8. module Test.Syd.Validity.Property

    No documentation available.

  9. module Test.Syd.Validity.Shrinking.Property

    Tests for shrinking functions

  10. module Data.Monoid.Instances.Positioned

    This module defines two monoid transformer data types, OffsetPositioned and LinePositioned. Both data types add a notion of the current position to their base monoid. In case of OffsetPositioned, the current position is a simple integer offset from the beginning of the monoid, and it can be applied to any StableFactorial. The base monoid of LinePositioned must be a TextualMonoid, but for the price it will keep track of the current line and column numbers as well. Line number is zero-based, column one-based:

    > let p = pure "abcd\nefgh\nijkl\nmnop\n" :: LinePositioned String
    > p
    "abcd\nefgh\nijkl\nmnop\n"
    > Data.Monoid.Factorial.drop 13 p
    Line 2, column 4: "l\nmnop\n"
    

Page 293 of many | Previous | Next