Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
copilot-core Copilot.Core.Spec No documentation available.
-
dimensional Numeric.Units.Dimensional.Quantities No documentation available.
type
FormattedTime = ByteStringeasy-logger EasyLogger.Date Type aliaes for date format and formatted date.
-
Module for pretty-printing epub meta-information Defined here is the Formattable typeclass and instances for the top-level epub data structures. The intention is that consumers use the format function on any of these otherwise disparate types.
-
epub-metadata Codec.Epub.Format No documentation available.
module Ersatz.Internal.
Formula No documentation available.
-
ersatz Ersatz.Internal.Formula A conjunction of clauses
Formula :: Seq Clause -> Formulaersatz Ersatz.Internal.Formula No documentation available.
-
A simple, Haskell-native simulator for doing force-directed layout, e.g. of trees or graphs. To use, just create an Ensemble like so:
import Control.Lens ((&), (.~)) import Data.Default (def) import qualified Data.Map as M import Linear.Affine import Linear.V2 import Physics.ForceLayout e :: Ensemble V2 Double e = Ensemble [ (edges, hookeForce 0.05 4) , (allPairs, coulombForce 1) ] particleMap where edges = [(1,2), (2,3), (2,5), (3,5), (3,4), (4,5)] allPairs = [(x,y) | x <- [1..4], y <- [x+1..5]] particleMap = M.fromList . zip [1..] . map (initParticle . P . uncurry V2) $ [ (2.0, 3.1), (6.3, 7.2) , (0.3, 4.2), (1.6, -1.1) , (4.8, 2.9) ]
Then run a simulation using either simulate (to get the list of all intermediate states) or forceLayout (to get only the ending state):e' :: Ensemble V2 Double e' = forceLayout (def & damping .~ 0.8 & energyLimit .~ Just 0.001 & stepLimit .~ Nothing ) e
See the diagrams-contrib package (http://github.com/diagrams/diagrams-contrib/) for more examples. -
force-layout Physics.ForceLayout Options for customizing a simulation.