ribosome-0.9.9.9: lib/Ribosome/Internal/Path.hs
{-# options_haddock prune, hide #-}
-- |Internal combinators for paths.
module Ribosome.Internal.Path where
import Exon (exon)
import Ribosome.Host.Data.Report (Report)
failInvalidPath ::
Member (Stop Report) r =>
Text ->
Maybe a ->
Sem r a
failInvalidPath spec result =
withFrozenCallStack do
stopNote (fromText [exon|Invalid path: #{spec}|]) result