Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

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

  1. fromList :: (a -> [Hash]) -> Int -> [a] -> Bloom a

    bloomfilter Data.BloomFilter

    Create an immutable Bloom filter, populating it from a list of values. Here is an example that uses the cheapHashes function from the Data.BloomFilter.Hash module to create a hash function that returns three hashes.

    import Data.BloomFilter.Hash (cheapHashes)
    
    filt = fromList (cheapHashes 3) 1024 ["foo", "bar", "quux"]
    
    

  2. fromList :: Enum a => T [] a -> T a

    board-games Game.Mastermind.NonEmptyEnumSet

    No documentation available.

  3. fromList :: Int -> [a] -> BQueue a

    bounded-queue Data.Queue.Bounded

    Naively keeps the first <math> values of the input list (as defined by the given limiting Int value) and does not attempt any elegant queue-like cycling.

  4. fromList :: [(ByteString, a)] -> Trie a

    bytestring-trie Data.Trie

    Convert association list into a trie. On key conflict, values earlier in the list shadow later ones.

  5. fromList :: [(ByteString, a)] -> Trie a

    bytestring-trie Data.Trie.Internal

    Convert association list into a trie. On key conflict, values earlier in the list shadow later ones.

  6. fromList :: forall a (dom :: Domain) . NFDataX a => [a] -> Signal dom a

    clash-prelude Clash.Explicit.Signal

    Create a Signal from a list Every element in the list will correspond to a value of the signal for one clock cycle.

    >>> sampleN 2 (fromList [1,2,3,4,5])
    [1,2]
    
    NB: This function is not synthesizable

  7. fromList :: forall a (dom :: Domain) . NFDataX a => [a] -> Signal dom a

    clash-prelude Clash.Prelude

    Create a Signal from a list Every element in the list will correspond to a value of the signal for one clock cycle.

    >>> sampleN 2 (fromList [1,2,3,4,5])
    [1,2]
    
    NB: This function is not synthesizable

  8. fromList :: forall a (dom :: Domain) . NFDataX a => [a] -> Signal dom a

    clash-prelude Clash.Signal

    Create a Signal from a list Every element in the list will correspond to a value of the signal for one clock cycle.

    >>> sampleN 2 (fromList [1,2,3,4,5])
    [1,2]
    
    NB: This function is not synthesizable

  9. fromList :: forall a (dom :: Domain) . NFDataX a => [a] -> Signal dom a

    clash-prelude Clash.Signal.Internal

    Create a Signal from a list Every element in the list will correspond to a value of the signal for one clock cycle.

    >>> sampleN 2 (fromList [1,2,3,4,5])
    [1,2]
    
    NB: This function is not synthesizable

  10. fromList :: forall (n :: Nat) a . KnownNat n => [a] -> Maybe (Vec n a)

    clash-prelude Clash.Sized.Vector

    Convert a list to a vector. This function returns Nothing if the size of the list is not equal to the size of the resulting vector.

    >>> Vec.fromList [1,2,3,4,5] :: Maybe (Vec 5 Int)
    Just (1 :> 2 :> 3 :> 4 :> 5 :> Nil)
    
    >>> Vec.fromList [1,2,3,4,5] :: Maybe (Vec 3 Int)
    Nothing
    
    >>> Vec.fromList [1,2,3,4,5] :: Maybe (Vec 10 Int)
    Nothing
    
    • NB: Use listToVecTH if you want to make a statically known vector
    • NB: This function is not synthesizable

Page 28 of many | Previous | Next