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.
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
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
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
fromList :: Ord k => [(Bound k, v)] -> v -> SF k vstep-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]
fromList :: Ord k => [(k, v)] -> v -> SF k vstep-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]
fromList :: Ord k => [(k, v)] -> v -> SF k vstep-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]
fromList :: Unbox a => [a] -> Array astreamly Streamly.Data.Array.Foreign Create an Array from a list. The list must be of finite size.
fromListN :: Unbox a => Int -> [a] -> Array astreamly 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.
toList :: Unbox a => Array a -> [a]streamly Streamly.Data.Array.Foreign Convert an Array into a list.
-
streamly Streamly.Data.Stream.MkType The IsList class and its methods are intended to be used in conjunction with the OverloadedLists extension.