Hoogle Search
Within LTS Haskell 24.28 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lgeneratorsList' :: LActGen x s => [x]lr-acts Data.Act.Cyclic The set of origins of the action LAct x s seen as a list. You can let this function undefined if the set of origins cannot be represented as a list.
>>> lgeneratorsList' @Int @(Sum Int) [0]
To avoid having to use the redundant first type aplication, use lgeneratorsList.rgeneratorsList :: forall s x . RActGen x s => [x]lr-acts Data.Act.Cyclic A version of rgeneratorsList' such that the first type application is s.
>>> rgeneratorsList @(Sum Int) :: [Int] [0]
rgeneratorsList' :: RActGen x s => [x]lr-acts Data.Act.Cyclic The set of origins of the action RAct x s seen as a list. You can let this function undefined if the set of origins cannot be represented as a list.
>>> rgeneratorsList' @(Sum Int) :: [Int] [0]
fromList :: (Ord k, Eq v) => v -> [(k, v)] -> MapWithDefault k vmappings Data.Mapping.MapWithDefault No documentation available.
fromListWithKey :: (Ord k, Eq v) => v -> (k -> u -> v -> v) -> [(k, u)] -> MapWithDefault k vmappings Data.Mapping.MapWithDefault No documentation available.
fromAscList :: Eq v => v -> [(k, v)] -> Piecewise k vmappings Data.Mapping.Piecewise Assumes the keys are distinct and increasing (but consecutive values may be the same, in which case the intervening keys are removed)
fromAscListUnsafe :: v -> [(k, v)] -> Piecewise k vmappings Data.Mapping.Piecewise Assumes that the keys are distinct and increasing, and also that consecutive values are distinct
fromList :: forall (m :: Nat) (n :: Nat) a . (KnownNat m, KnownNat n) => [a] -> Maybe (Matrix m n a)matrix-static Data.Matrix.Static Create a matrix from a list of elements. The list must have exactly length n*m or this returns Nothing. An example:
fromList [1..9] :: Maybe (Matrix 3 3 Int) Just ( 1 2 3 ) ( 4 5 6 ) ( 7 8 9 )
fromListUnsafe :: forall (m :: Nat) (n :: Nat) a . (KnownNat m, KnownNat n) => [a] -> Matrix m n amatrix-static Data.Matrix.Static Create a matrix from a non-empty list given the desired size. The list must have at least rows*cols elements. An example:
fromListUnsafe [1..9] :: Matrix 3 3 Int ( 1 2 3 ) ( 4 5 6 ) ( 7 8 9 )
-
matrix-static Data.Matrix.Static Create a matrix from a list of rows. The list must have exactly m lists of length n. Nothing is returned otherwise Example:
fromLists [ [1,2,3] ( 1 2 3 ) , [4,5,6] ( 4 5 6 ) , [7,8,9] ] = ( 7 8 9 )