Hoogle Search

Within LTS Haskell 24.41 (ghc-9.10.3)

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

  1. module Data.CharSet.Posix

    No documentation available.

  2. data Point a

    chart-svg Chart.Data

    A 2-dimensional Point of a's In contrast with a tuple, a Point is functorial over both arguments.

    >>> let p = Point 1 1
    
    >>> p + p
    Point 2 2
    
    >>> (2*) <$> p
    Point 2 2
    
    A major reason for this bespoke treatment (compared to just using linear, say) is that Points do not have maximums and minimums but they do form a lattice, and this is useful for folding sets of points to find out the (rectangular) Space they occupy.
    >>> Point 0 1 /\ Point 1 0
    Point 0 0
    
    >>> Point 0 1 \/ Point 1 0
    Point 1 1
    
    This is used extensively in chart-svg to ergonomically obtain chart areas.
    unsafeSpace1 [Point 1 0, Point 0 1] :: Rect Double
    
    Rect 0.0 1.0 0.0 1.0

  3. Point :: a -> a -> Point a

    chart-svg Chart.Data

    No documentation available.

  4. data Place

    chart-svg Chart.Hud

    Rectangular placement

  5. PlaceAbsolute :: Point Double -> Place

    chart-svg Chart.Hud

    No documentation available.

  6. PlaceBottom :: Place

    chart-svg Chart.Hud

    No documentation available.

  7. PlaceLeft :: Place

    chart-svg Chart.Hud

    No documentation available.

  8. PlaceRight :: Place

    chart-svg Chart.Hud

    No documentation available.

  9. PlaceTop :: Place

    chart-svg Chart.Hud

    No documentation available.

  10. data Priority a

    chart-svg Chart.Hud

    The priority of a Hud element or transformation, lower value means higher priority. Lower priority (higher values) huds will tend to be placed on the outside of a chart. Hud elements are rendered in order from high to low priority and the positioning of hud elements can depend on the positioning of elements that have already been included. Equal priority values will be placed in the same process step. The first example below, based in lineExample but with the legend placed on the right and coloured frames to help accentuate effects, includes (in order of priority):

    • an inner frame, representing the core data area of the chart (Priority 1)
    • the axes (5)
    • the titles (Priority 12)
    • the legend (Priority 50)
    • an outer frame which is transparent and used to pad out the chart (Priority 100).
    priorityv1Example = lineExample & (#hudOptions % #frames) .~ [(1, FrameOptions (Just defaultRectStyle) 0), (100, FrameOptions (Just (defaultRectStyle & #color .~ (palette1 4 & opac' .~ 0.05) & #borderColor .~ palette1 4)) 0.1)] & over (#hudOptions % #legends) (fmap (first (const (Priority 50)))) & #hudOptions % #legends %~ fmap (second (set #place PlaceRight))
    
    The second variation below drops the title priorities to below the legend:
    priorityv2Example = priorityv1Example & #hudOptions % #titles %~ fmap (first (const (Priority 51)))
    

Page 674 of many | Previous | Next