Hoogle Search
Within LTS Haskell 24.42 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
call-alloy Language.Alloy.Call The currently used Alloy version.
>>> alloyVersion "6.2.0"
allowDepCycles :: forall (m :: Type -> Type) . MonadFix m => Fire mcauldron Cauldron Allow any kind of dependency cycles. Usually comes in handy for creating serializers / deserializers for mutually dependent types. Note that a MonadFix instance is required of the initialization monad. BEWARE: Pattern-matching too eagerly on argument beans during construction will cause infinite loops or, if you are lucky, throw FixIOExceptions.
>>> :{ data U = U data V = V loopyU :: V -> U loopyU _ = U loopyV :: U -> V loopyV _ = V :}>>> :{ mconcat [ recipe @U $ val $ wire loopyU, recipe @V $ val $ wire loopyV :: Cauldron IO ] & cook @U allowDepCycles & \case Left (DependencyCycleError _) -> "oops"; _ -> "cycles are ok" :} "cycles are ok"allowSelfDeps :: forall (m :: Type -> Type) . MonadFix m => Fire mcauldron Cauldron Allow direct self-dependencies. A bean constructor might depend on itself. This can be useful for having decorated self-invocations, because the version of the bean received as argument comes "from the future" and is already decorated. Note that a MonadFix instance is required of the initialization monad. BEWARE: Pattern-matching too eagerly on a "bean from the future" during construction will cause infinite loops or, if you are lucky, throw FixIOExceptions.
>>> :{ data A = A loopyA :: A -> A loopyA _ = A :}>>> :{ (recipe @A $ val $ wire loopyA :: Cauldron IO) & cook @A allowSelfDeps & \case Left (DependencyCycleError _) -> "oops"; _ -> "self dep is ok" :} "self dep is ok">>> :{ data U = U data V = V loopyU :: V -> U loopyU _ = U loopyV :: U -> V loopyV _ = V :}>>> :{ mconcat [ recipe @U $ val $ wire loopyU, recipe @V $ val $ wire loopyV :: Cauldron IO ] & cook @U allowSelfDeps & \case Left (DependencyCycleError _) -> "cycle between 2 deps"; _ -> "oops" :} "cycle between 2 deps"allocate :: [LetBinding] -> Term -> Machine -> Machineclash-ghc Clash.GHC.Evaluator Allocate let-bindings on the heap
allR :: Monad m => Transform m -> Transform mclash-lib Clash.Rewrite.Combinators Apply a transformation on the subtrees of an term
allEqual :: Eq a => [a] -> Boolcode-conjure Conjure.Utils Checks if all elements of a list are equal.
allEqual2 :: Eq a => [a] -> Boolcode-conjure Conjure.Utils Checks if all elements of a list are equal. Exceptionally this function returns false for an empty or unit list. This returns true when all elements are equal and the list has a length greater than or equal to two.
allEqualOn :: Eq b => (a -> b) -> [a] -> Boolcode-conjure Conjure.Utils No documentation available.
-
codec-beam Codec.Beam.Instructions Allocate space for some words on the stack. If a GC is needed during allocation there are a number of live X registers. Also save the continuation pointer (CP) on the stack.
allocate_heap :: Int -> Int -> Int -> Opcodec-beam Codec.Beam.Instructions Allocate space for some words on the stack and ensure there is space for words on the heap. If a GC is needed save Live number of X registers. Also save the continuation pointer (CP) on the stack.