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.
focusList :: FocusList a -> !Seq afocuslist Data.FocusList No documentation available.
focusListFocus :: FocusList a -> !Focusfocuslist Data.FocusList No documentation available.
fromListFL :: Focus -> [a] -> Maybe (FocusList a)focuslist Data.FocusList Safely create a FocusList from a list.
>>> fromListFL (Focus 1) ["cat","dog","goat"] Just (FocusList (Focus 1) ["cat","dog","goat"])
>>> fromListFL NoFocus [] Just (FocusList NoFocus [])
If the Focus is out of range for the list, then Nothing will be returned.>>> fromListFL (Focus (-1)) ["cat","dog","goat"] Nothing
>>> fromListFL (Focus 3) ["cat","dog","goat"] Nothing
>>> fromListFL NoFocus ["cat","dog","goat"] Nothing
complexity: O(n) where n is the length of the input list.-
focuslist Data.FocusList No documentation available.
lensFocusListFocus :: forall a f . Functor f => (Focus -> f Focus) -> FocusList a -> f (FocusList a)focuslist Data.FocusList No documentation available.
unsafeFromListFL :: Focus -> [a] -> FocusList afocuslist Data.FocusList Unsafely create a FocusList. This does not check that the focus actually exists in the list. This is an internal function and should generally not be used. It is only safe to use if you ALREADY know the Focus is within the list. Instead, you should generally use fromListFL. The following is an example of using unsafeFromListFL correctly.
>>> unsafeFromListFL (Focus 1) [0..2] FocusList (Focus 1) [0,1,2]
>>> unsafeFromListFL NoFocus [] FocusList NoFocus []
unsafeFromListFL can also be used uncorrectly. The following is an example of unsafeFromListFL allowing you to create a FocusList that does not pass invariantFL.>>> unsafeFromListFL (Focus 100) [0..2] FocusList (Focus 100) [0,1,2]
If fromListFL returns a Just FocusList, then unsafeFromListFL should return the same FocusList. complexity: O(n) where n is the length of the input list.fromList :: [Text] -> FuzzySetfuzzyset Data.FuzzySet.Simple Create a new set from a list of entries, using the default settings.
module Data.Generics.Product.
HList Derive an isomorphism between a product type and a flat HList.
class
IsList f g (as :: [Type]) (bs :: [Type]) | f -> as, g -> bsgeneric-optics Data.Generics.Product.HList No documentation available.
-
ghci-hexcalc Data.GHex Set bits with List
>>> bitList [15, 8, 1] 0x0000_0000_0000_8102