Hoogle Search

Within LTS Haskell 24.51 (ghc-9.10.3)

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

  1. (--..-) :: (Expr, Expr) -> Expr -> Expr

    express Data.Express.Fixtures

    enumFromThenTo lifted over Exprs but named as ",.." for pretty-printing.

    > (zero,two) --..- ten
    [0,2..10] :: [Int]
    

  2. (-.-) :: Expr -> Expr -> Expr

    express Data.Express.Fixtures

    Function composition . lifted over Expr.

    > absE -.- negateE
    abs . negate :: Int -> Int
    
    > absE -.- negateE :$ one
    (abs . negate) 1 :: Int
    
    This works for Int, Bool, Char and their lists.

  3. (-..) :: Expr -> () -> Expr

    express Data.Express.Fixtures

    enumFrom lifted over Exprs named as ".." for pretty-printing.

    > one -.. ()
    [1..] :: [Int]
    
    Works for Ints, Bools and Chars.

  4. (-..-) :: Expr -> Expr -> Expr

    express Data.Express.Fixtures

    enumFromTo lifted over Exprs but named as ".." for pretty-printing.

    > zero -..- four
    [0..4] :: [Int]
    

  5. (>.<) :: Space s => Element s -> Element s -> s

    numhask-space NumHask.Space

    create a space from two elements without normalising

  6. (|.) :: Affinity a b => Transform b -> a -> a

    numhask-space NumHask.Space

    Apply a Transform to an Affinity

  7. (|.|) :: Space s => Element s -> s -> Bool

    numhask-space NumHask.Space

    is an element in the space

  8. (<.>) :: (Multiplicative a, Additive a) => Point a -> Point a -> a

    numhask-space NumHask.Space.Point

    dot product operator

  9. (<@.) :: EntityField record Value -> Value -> Filter record

    persistent-postgresql Database.Persist.Postgresql.JSON

    Same as @>. except the inclusion check is reversed. i.e. is the JSON value on the left hand side included in the JSON value of the right hand side.

  10. (?&.) :: EntityField record Value -> [Text] -> Filter record

    persistent-postgresql Database.Persist.Postgresql.JSON

    This operator takes a column and a list of strings to test whether ALL of the elements of the list are top level fields in an object.

    column ?&. list
    
    N.B. An empty list will match anything. Also, this operator might have some unexpected interactions with non-object values. Please reference the examples.

    Objects

    {"a":null}                 ?& ["a"]         == True
    {"a":null}                 ?& ["a","a"]     == True
    {"test":false,"a":500}     ?& ["a"]         == True
    {"test":false,"a":500}     ?& ["a","b"]     == False
    {}                         ?& ["{}"]        == False
    {"b":{"a":[]}}             ?& ["a"]         == False
    {"b":{"a":[]},"c":false}   ?& ["a","c"]     == False
    {"a":1,"b":2,"c":3,"d":4}  ?& ["b","d"]     == True
    {}                         ?& []            == True
    {"b":{"a":[]},"test":null} ?& []            == True
    

    Arrays

    This operator will match an array if all of the elements of the list are matching string elements of the array.
    ["a"]                   ?& ["a"]         == True
    ["a"]                   ?& ["a","a"]     == True
    [["a"]]                 ?& ["a"]         == False
    ["a","b","c"]           ?& ["a","b","d"] == False
    [9,"false","1",null]    ?& ["1","false"] == True
    []                      ?& ["a","b"]     == False
    [{"a":true}]            ?& ["a"]         == False
    ["a","b","c","d"]       ?& ["b","c","d"] == True
    [null,4,{"test":false}] ?& []            == True
    []                      ?& []            == True
    

    Other values

    This operator functions much like an equivalence operator on strings only. If a string matches with all elements of the given list, the comparison matches.
    "a"   ?& ["a"]     == True
    "1"   ?& ["a","1"] == False
    "b"   ?& ["b","b"] == True
    "ab"  ?& ["a","b"] == False
    1     ?& ["1"]     == False
    null  ?& ["null"]  == False
    true  ?& ["true"]  == False
    31337 ?& []        == True
    true  ?& []        == True
    null  ?& []        == True
    

Page 126 of many | Previous | Next