Hoogle Search

Within LTS Haskell 24.36 (ghc-9.10.3)

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

  1. fromListMutableN :: forall (arr :: Type -> Type) a m . (Contiguous arr, Element arr a, PrimMonad m) => Int -> [a] -> m (Mutable arr (PrimState m) a)

    contiguous Data.Primitive.Contiguous

    Given an Int that is representative of the length of the list, convert the list into a mutable array of the given length. Note: calls error if the given length is incorrect.

  2. fromListN :: (Contiguous arr, Element arr a) => Int -> [a] -> arr a

    contiguous Data.Primitive.Contiguous

    Given an Int that is representative of the length of the list, convert the list into a mutable array of the given length. Note: calls error if the given length is incorrect.

  3. toList :: (Contiguous arr, Element arr a) => arr a -> [a]

    contiguous Data.Primitive.Contiguous

    Convert an array to a list.

  4. toListMutable :: forall (arr :: Type -> Type) a m . (Contiguous arr, Element arr a, PrimMonad m) => Mutable arr (PrimState m) a -> m [a]

    contiguous Data.Primitive.Contiguous

    Convert a mutable array to a list.

  5. unsafeFromListN :: (Contiguous arr, Element arr a) => Int -> [a] -> arr a

    contiguous Data.Primitive.Contiguous

    Create an array from a list. If the given length does not match the actual length, this function has undefined behavior.

  6. unsafeFromListReverseMutableN :: forall (arr :: Type -> Type) a m . (Contiguous arr, Element arr a, PrimMonad m) => Int -> [a] -> m (Mutable arr (PrimState m) a)

    contiguous Data.Primitive.Contiguous

    Create a mutable array from a list, reversing the order of the elements. If the given length does not match the actual length, this function has undefined behavior.

  7. unsafeFromListReverseN :: (Contiguous arr, Element arr a) => Int -> [a] -> arr a

    contiguous Data.Primitive.Contiguous

    Create an array from a list, reversing the order of the elements. If the given length does not match the actual length, this function has undefined behavior.

  8. fromList :: [(Expr, a)] -> Triexpr a

    express Data.Express.Triexpr

    Constructs a Triexpr form a list of key Exprs and associated values.

  9. toList :: Triexpr a -> [(Expr, a)]

    express Data.Express.Triexpr

    List all Expr stored in a Triexpr along with their associated values.

  10. countListTy :: TypeRep -> Int

    express Data.Express.Utils.Typeable

    Return the number of outer list nestings in a TypeRep

    > countListTy $ typeOf (undefined :: Int)
    0
    
    > countListTy $ typeOf (undefined :: [Bool])
    1
    
    > countListTy $ typeOf (undefined :: [[()]])
    2
    
    > countListTy $ typeOf (undefined :: String)
    1
    
    > countListTy $ typeOf (undefined :: ([Int],[Bool]))
    0
    

Page 125 of many | Previous | Next