Hoogle Search

Within LTS Haskell 24.37 (ghc-9.10.3)

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

  1. districtList :: [(Text, StateCode)]

    state-codes Data.StateCodes

    List of districts sorted by alphabetical order, with state code this is ready to be used in a yesod selectField, for example

  2. outlyingAreasList :: [(Text, StateCode)]

    state-codes Data.StateCodes

    List of outlying areas sorted by alphabetical order, with state code this is ready to be used in a yesod selectField, for example

  3. stateList :: [(Text, StateCode)]

    state-codes Data.StateCodes

    List of states sorted by alphabetical order, with state code this is ready to be used in a yesod selectField, for example

  4. fromList :: Ord k => [(Bound k, v)] -> v -> SF k v

    step-function Data.Function.Step

    Create function from list of cases and default value.

    >>> let f = fromList [(Open 1,2),(Closed 3,4),(Open 4,5)] 6
    
    >>> putSF f
    \x -> if
    | x <  1    -> 2
    | x <= 3    -> 4
    | x <  4    -> 5
    | otherwise -> 6
    
    >>> map (f !) [0..10]
    [2,4,4,4,6,6,6,6,6,6,6]
    

  5. fromList :: Ord k => [(k, v)] -> v -> SF k v

    step-function Data.Function.Step.Discrete.Closed

    Create function from list of cases and default value.

    >>> let f = fromList [(1,2),(3,4)] 5
    
    >>> putSF f
    \x -> if
    | x <= 1    -> 2
    | x <= 3    -> 4
    | otherwise -> 5
    
    >>> map (f !) [0..10]
    [2,2,4,4,5,5,5,5,5,5,5]
    

  6. fromList :: Ord k => [(k, v)] -> v -> SF k v

    step-function Data.Function.Step.Discrete.Open

    Create function from list of cases and default value.

    >>> putSF $ fromList [(1,2),(3,4)] 5
    \x -> if
    | x < 1     -> 2
    | x < 3     -> 4
    | otherwise -> 5
    
    >>> map (fromList [(1,2),(3,4)] 5 !) [0..10]
    [2,4,4,5,5,5,5,5,5,5,5]
    

  7. fromList :: Unbox a => [a] -> Array a

    streamly Streamly.Data.Array.Foreign

    Create an Array from a list. The list must be of finite size.

  8. fromListN :: Unbox a => Int -> [a] -> Array a

    streamly Streamly.Data.Array.Foreign

    Create an Array from the first N elements of a list. The array is allocated to size N, if the list terminates before N elements then the array may hold less than N elements.

  9. toList :: Unbox a => Array a -> [a]

    streamly Streamly.Data.Array.Foreign

    Convert an Array into a list.

  10. class IsList l

    streamly Streamly.Data.Stream.MkType

    The IsList class and its methods are intended to be used in conjunction with the OverloadedLists extension.

Page 224 of many | Previous | Next