Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
$: ) :: ToBuilder b => (Builder -> b) -> Builder -> bcaster System.Log.Caster.Monad Infix version of fix.
-
clash-prelude Clash.HaskellPrelude Strict (call-by-value) application operator. It takes a function and an argument, evaluates the argument to weak head normal form (WHNF), then calls the function with that value.
(
$$ ) :: Expr -> Expr -> Maybe Exprcode-conjure Conjure.Engine O(n). Creates an Expr representing a function application. Just an Expr application if the types match, Nothing otherwise. (cf. :$)
> value "id" (id :: () -> ()) $$ val () Just (id () :: ())
> value "abs" (abs :: Int -> Int) $$ val (1337 :: Int) Just (abs 1337 :: Int)
> value "abs" (abs :: Int -> Int) $$ val 'a' Nothing
> value "abs" (abs :: Int -> Int) $$ val () Nothing
(
$$< ) :: Expr -> [Expr] -> [Expr]code-conjure Conjure.Engine Lists valid applications between an Expr and a list of Exprs.
> notE >$$< [false, true, zero] [not False :: Bool,not True :: Bool]
-
code-conjure Conjure.Expr Extracts the argument of a function application at the given position.
(one -+- two) $!! 1
1 :: Int(one -+- two) $!! 2
2 :: Int (
$$ ) :: Expr -> Expr -> Maybe Exprcode-conjure Conjure.Expr O(n). Creates an Expr representing a function application. Just an Expr application if the types match, Nothing otherwise. (cf. :$)
> value "id" (id :: () -> ()) $$ val () Just (id () :: ())
> value "abs" (abs :: Int -> Int) $$ val (1337 :: Int) Just (abs 1337 :: Int)
> value "abs" (abs :: Int -> Int) $$ val 'a' Nothing
> value "abs" (abs :: Int -> Int) $$ val () Nothing
(
$$** ) :: Expr -> Expr -> Maybe Exprcode-conjure Conjure.Expr Like $$ but always works regardless of type. Warning: just like :$, this may produce ill-typed expressions.
> zero $$** zero Just (0 0 :: ill-typed # Int $ Int #)
Together with $$|<, this function is unused but is useful when experiment with the source to see the effect of type-corrected on pruning the search space. (cf. $$, $$|<)(
$$< ) :: Expr -> [Expr] -> [Expr]code-conjure Conjure.Expr Lists valid applications between an Expr and a list of Exprs.
> notE >$$< [false, true, zero] [not False :: Bool,not True :: Bool]
(
$$|< ) :: Expr -> Expr -> Maybe Exprcode-conjure Conjure.Expr Like $$ but relaxed to work on correct kinds.
> ordE $$|< zero Just (ord 0 :: ill-typed # Char -> Int $ Int #)
> zero $$|< zero Nothing
Warning: just like :$, this may produce ill-typed expressions. Together with $$**, this function is unused but is useful when experiment with the source to see the effect of type-corrected on pruning the search space. (cf. $$, $$**)-
dimensional Numeric.Units.Dimensional.Prelude Strict (call-by-value) application operator. It takes a function and an argument, evaluates the argument to weak head normal form (WHNF), then calls the function with that value.