Hoogle Search

Within LTS Haskell 24.64 (ghc-9.10.3)

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

  1. (.++) :: (Int, Hex) -> (Int, Hex) -> (Int, Hex)

    ghci-hexcalc Data.GHex

    Concatinate pairs of (length,Hex)

    >>> (3,0b101) .++ (2,0b11)
    (5,0x0000_0000_0000_0017)
    
    >>> (4,0xa) .++ (4,0xb) .++ (8,0xcd)
    (16,0x0000_0000_0000_abcd)
    
    >>> (4,0xe) .++ (4,0xf) .@snd
    0x0000_0000_0000_00ef
    

  2. (./) :: Hex -> Hex -> Hex

    ghci-hexcalc Data.GHex

    Integer div

    >>> 0x1000 ./ 16
    0x0000_0000_0000_0100
    

  3. (.<<) :: Hex -> Int -> Hex

    ghci-hexcalc Data.GHex

    Logical left shift

    >>> 1 .<< 16
    0x0000_0000_0001_0000
    

  4. (.>>) :: Hex -> Int -> Hex

    ghci-hexcalc Data.GHex

    Logical right shift

    >>> 0x0f00 .>> 4
    0x0000_0000_0000_00f0
    

  5. (.@) :: a -> (a -> b) -> b

    ghci-hexcalc Data.GHex

    Operator for postfix notation (same as Data.Function.(&))

    >>> 255 .@hex
    "0x0000_0000_0000_00ff"
    
    >>> 0xf1 .@bin
    "0b1111_0001"
    
    >>> 2^12 .@dec
    "4096"
    
    >>> 4 * giga .@pos1
    [32]
    
    0x0 .@color (bits 31 24)
    0b0000_0000_0000_0000_0000_0000_0000_0000_1111_1111_0000_0000_0000_0000_0000_0000
    ^^^^ ^^^^
    

  6. (.^) :: Hex -> Hex -> Hex

    ghci-hexcalc Data.GHex

    Bitwise "xor"

    >>> 0xf .^ 0xa
    0x0000_0000_0000_0005
    

  7. (.|) :: Hex -> Hex -> Hex

    ghci-hexcalc Data.GHex

    Bitwise "or"

    >>> 0xf000 .| 0xa
    0x0000_0000_0000_f00a
    

  8. (.=?) :: ToJSON v => Key -> Maybe v -> [Pair]

    github GitHub.Data.Content

    No documentation available.

  9. (.!=) :: Parser (Maybe a) -> a -> Parser a

    github GitHub.Internal.Prelude

    Helper for use in combination with .:? to provide default values for optional JSON object fields. This combinator is most useful if the key and value can be absent from an object without affecting its validity and we know a default value to assign in that case. If the key and value are mandatory, use .: instead. Example usage:

    v1 <- o .:? "opt_field_with_dfl" .!= "default_val"
    v2 <- o .:  "mandatory_field"
    v3 <- o .:? "opt_field2"
    

  10. (.:) :: FromJSON a => Object -> Key -> Parser a

    github GitHub.Internal.Prelude

    Retrieve the value associated with the given key of an Object. The result is empty if the key is not present or the value cannot be converted to the desired type. This accessor is appropriate if the key and value must be present in an object for it to be valid. If the key and value are optional, use .:? instead.

Page 55 of many | Previous | Next