Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Functions that cope both with plain and non-empty structures. If there are two versions of a function, where one works on fixed-length lists, then place the fixed-length list variant in NonEmpty and the other one here.
filterToInfixes :: Foldable f => (a -> Bool) -> f a -> [T [] a]non-empty Data.NonEmpty.Mixed No documentation available.
isPrefixOf :: ShortText -> ShortText -> Booltext-short Data.Text.Short Tests whether the first ShortText is a prefix of the second ShortText
>>> isPrefixOf "ab" "abcdef" True
>>> isPrefixOf "ac" "abcdef" False
isPrefixOf "" t == True
isPrefixOf t t == True
isSuffixOf :: ShortText -> ShortText -> Booltext-short Data.Text.Short Tests whether the first ShortText is a suffix of the second ShortText
>>> isSuffixOf "ef" "abcdef" True
>>> isPrefixOf "df" "abcdef" False
isSuffixOf "" t == True
isSuffixOf t t == True
stripPrefix :: ShortText -> ShortText -> Maybe ShortTexttext-short Data.Text.Short Strip prefix from second ShortText argument. Returns Nothing if first argument is not a prefix of the second argument.
>>> stripPrefix "text-" "text-short" Just "short"
>>> stripPrefix "test-" "text-short" Nothing
stripSuffix :: ShortText -> ShortText -> Maybe ShortTexttext-short Data.Text.Short Strip suffix from second ShortText argument. Returns Nothing if first argument is not a suffix of the second argument.
>>> stripSuffix "-short" "text-short" Just "text"
>>> stripSuffix "-utf8" "text-short" Nothing
-
Picture loading/serialization (in png, jpeg, bitmap, gif, tga, tiff and radiance) This library can load and store images in PNG,Bitmap, Jpeg, Radiance, Tiff and Gif images.
class (Storable
Pixel BaseComponent a, Num PixelBaseComponent a, Eq a) => Pixel aJuicyPixels Codec.Picture Definition of pixels used in images. Each pixel has a color space, and a representative component (Word8 or Float).
-
JuicyPixels Codec.Picture Type alias for 16bit greyscale pixels.
-
JuicyPixels Codec.Picture Type alias for 32bit greyscale pixels.