Hoogle Search

Within LTS Haskell 24.45 (ghc-9.10.3)

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

  1. pattern Ident :: String -> Name

    haskell-src-exts-simple Language.Haskell.Exts.Simple.Syntax

    No documentation available.

  2. Ident :: Text -> AttAST

    heist Heist.Internal.Types

    No documentation available.

  3. IdSelector :: String -> SimpleSelector

    hxt-css Text.XML.HXT.CSS.TypeDefs

    #id
    

  4. data Identity a

    hyperbole Web.Hyperbole

    Identity functor and monad. (a non-strict monad)

    Examples

    >>> fmap (+1) (Identity 0)
    Identity 1
    
    >>> Identity [1, 2, 3] <> Identity [4, 5, 6]
    Identity [1,2,3,4,5,6]
    
    >>> do
    x <- Identity 10
    y <- Identity (x + 5)
    pure (x + y)
    Identity 25
    

  5. data Identity a

    hyperbole Web.Hyperbole.View.Forms

    Identity functor and monad. (a non-strict monad)

    Examples

    >>> fmap (+1) (Identity 0)
    Identity 1
    
    >>> Identity [1, 2, 3] <> Identity [4, 5, 6]
    Identity [1,2,3,4,5,6]
    
    >>> do
    x <- Identity 10
    y <- Identity (x + 5)
    pure (x + y)
    Identity 25
    

  6. module Graphics.Identicon

    Core types and definitions for flexible generation of identicons. Please see the Graphics.Identicon.Primitive module for a collection of building blocks to code layers of your identicon. A basic complete example looks like this:

    import Codec.Picture
    import Data.ByteString (ByteString)
    import Data.Proxy
    import Data.Word (Word8)
    import Graphics.Identicon
    import Graphics.Identicon.Primitive
    
    myImageType :: Proxy (Identicon 4 :+ Consumer 4)
    myImageType = Proxy
    
    myImpl = Identicon :+ a
    where
    a :: Word8 -> Word8 -> Word8 -> Word8 -> Layer
    a r g b n = rsym $ onGrid 6 6 n $
    circle $ gradientLR (edge . mid) black (PixelRGB8 r g b)
    
    myGenerator :: Int -> Int -> ByteString -> Maybe (Image PixelRGB8)
    myGenerator = renderIdenticon myImageType myImpl
    
    myGenerator takes the desired width, height, and a hash that should have at least 4 bytes in it and returns an identicon corresponding to that hash or Nothing if the hash has less than 4 bytes in it or when width/height don't make sense. The identicon has randomly placed circle with gradient filling changing (horizontally) from black to some color and back to black. The circle is mirrored 4 times, and every repetition is rotated by 90°. This identicon consumes 4 bytes and has one layer.

  7. data Identicon (n :: Nat)

    identicon Graphics.Identicon

    Identicon is a type that represents an identicon consisting of zero layers. The type is parametrized over a phantom type n which is a natural number on the type level that represents the number of bytes that should be provided to generate this type of identicon. Bytes typically come from some sort of hash that has a fixed size.

  8. Identicon :: Identicon (n :: Nat)

    identicon Graphics.Identicon

    No documentation available.

  9. newtype Ident

    jmacro Language.Javascript.JMacro

    Identifiers

  10. newtype IdentSupply a

    jmacro Language.Javascript.JMacro

    No documentation available.

Page 216 of many | Previous | Next