HORIZON HASKELLDocslts/ghc-10.0.xc7d136e2026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · c7d136e · 2026-10-12

Modulepolysemy-1.9.2.0

Polysemy.Internal.Index

  • 1 type
  • 1 class
typetype InsertAtFailure (index :: t) (soughtTail :: t1) (head :: t2) (full :: t3) = ("insertAt: Failed to insert effects at index " <> 'ShowType index) % (("There is a mismatch between what's been determined as the head and tail between the newly inserted effects," <> " and the actual desired return type.") % ("Determined head before inserted effects:" % (("\t" <> 'ShowType head) % ("Determined tail after the inserted effects:" % (("\t" <> 'ShowType soughtTail) % ("Actual desired return type:" % (("\t" <> 'ShowType full) % ("Make sure that the index provided to insertAt is correct, and that the desired return type simply requires" <> " inserting effects."))))))))
#
classclass InsertAtIndex (index :: Nat) (head :: [k]) (tail :: [k]) (oldTail :: [k]) (full :: [k]) (inserted :: [k]) where
#

Methods

Instances2InsertAtIndex
  • inserted ~ '[] => InsertAtIndex index head oldTail oldTail full insertedDefined in polysemy-1.9.2.0 · Polysemy.Internal.Index
  • (InsertAtIndex index head tail oldTail full insertedTail, inserted ~ (e ': insertedTail)) => InsertAtIndex index head (e ': tail) oldTail full insertedDefined in polysemy-1.9.2.0 · Polysemy.Internal.Index