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.
PolyRegular :: Int -> n -> PolyType ndiagrams-lib Diagrams.TwoD.Polygons A regular polygon with the given number of sides (first argument) and the given radius (second argument).
PolySides :: [Angle n] -> [n] -> PolyType ndiagrams-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.
-
diagrams-lib Diagrams.TwoD.Polygons Method used to determine the vertices of a polygon.
-
diagrams-lib Diagrams.TwoD.Polygons Options for specifying a polygon.
PolygonOpts :: PolyType n -> PolyOrientation n -> Point V2 n -> PolygonOpts ndiagrams-lib Diagrams.TwoD.Polygons No documentation available.
-
diagrams-lib Diagrams.TwoD.Types No documentation available.
module Test.Syd.Validity.GenValidity.
Property Tests for GenValidity instances
module Test.Syd.Validity.
Property No documentation available.
module Test.Syd.Validity.Shrinking.
Property Tests for shrinking functions
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"