Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
jmacro Language.Javascript.JMacro.Types No documentation available.
theMap :: Map ph k v -> Map k vjustified-containers Data.Map.Justified withMap :: Map k v -> (forall ph . () => Map ph k v -> t) -> tjustified-containers Data.Map.Justified Evaluate an expression using justified key lookups into the given map.
import qualified Data.Map as M withMap (M.fromList [(1,"A"), (2,"B")]) $ \m -> do -- prints "Found Key 1 with value A" case member 1 m of Nothing -> putStrLn "Missing key 1." Just k -> putStrLn ("Found " ++ show k ++ " with value " ++ lookup k m) -- prints "Missing key 3." case member 3 m of Nothing -> putStrLn "Missing key 3." Just k -> putStrLn ("Found " ++ show k ++ " with value " ++ lookup k m)-
justified-containers Data.Map.Justified Evaluate an expression using justified key lookups into the given map, when the values can contain references back to keys in the map. Each referenced key is checked to ensure that it can be found in the map. If all referenced keys are found, they are augmented with evidence and the given function is applied. If some referenced keys are missing, information about the missing references is generated instead.
import qualified Data.Map as M data Cell ptr = Nil | Cons ptr ptr deriving (Functor, Foldable, Traversable) memory1 = M.fromList [(1, Cons 2 1), (2, Nil)] withRecMap memory1 (const ()) -- Right () memory2 = M.fromList [(1, Cons 2 3), (2, Nil)] withRecMap memory2 (const ()) -- Left [(1, Cons (2,Present) (3,Missing))]
See example5 for more usage examples. -
kdt Data.KdMap.Dynamic A dynamic k-d tree structure that stores points of type p with axis values of type a. Additionally, each point is associated with a value of type v.
-
kdt Data.KdMap.Static A k-d tree structure that stores points of type p with axis values of type a. Additionally, each point is associated with a value of type v.
withMappedConfig :: (cfg -> cfg') -> KeterM cfg' a -> KeterM cfg aketer Keter.Context No documentation available.
-
No documentation available.
-
keter Keter.LabelMap A data structure for storing a hierarchical set of domain labels from TLD down, supporting wildcards. Data structure is mutually recursive with LabelEntry, and each level of the tree supports a static assignment for a hostname such as:
example.com
Or a wildcard assignment for a hostname such as:*.example.com
Or a wildcard assignment with a set of teptions, for example:*.example.com admin.example.com
And lastly, empty labels are supported so that, of course, an assignment for example.com does not necessarily have any subdomains available. As an example suppose we have the following assigned domains:example.com foo.example.com *.bar.example.com *.qux.example.com baz.qux.example.com
This will resolve to the following value, with some loose pseudocode notation.Static (map) 'com' -> Unassigned Static (map) 'example' -> Assigned a (map) 'foo' -> Assigned a EmptyLabelMap 'bar' -> Unassigned (Wildcard (Assigned a EmptyLabelMap) 'qux' -> Unassigned (WildcardExcept (Assigned a (map))) 'baz' -> Assigned a EmptyLabelMap
Note that the hostname "bar.example.com" is unassigned, only the wildcard was set. -
keycode Web.KeyCode