diff --git a/sdk/compiler/damlc/daml-stdlib-src/DA/NonEmpty.daml b/sdk/compiler/damlc/daml-stdlib-src/DA/NonEmpty.daml index 0dc264318c9e..d134c259fcd5 100644 --- a/sdk/compiler/damlc/daml-stdlib-src/DA/NonEmpty.daml +++ b/sdk/compiler/damlc/daml-stdlib-src/DA/NonEmpty.daml @@ -122,7 +122,7 @@ find p (NonEmpty head tail) deleteBy : (a -> a -> Bool) -> a -> NonEmpty a -> [a] deleteBy eq a ts = L.deleteBy eq a (toList ts) --- | Remove the first occurence of x from the non-empty list, potentially +-- | Remove the first occurrence of x from the non-empty list, potentially -- removing all elements. delete : Eq a => a -> NonEmpty a -> [a] delete = deleteBy (==) diff --git a/sdk/daml-assistant/daml-project-config/DA/Daml/Project/Config.hs b/sdk/daml-assistant/daml-project-config/DA/Daml/Project/Config.hs index 03852916fba1..464e1e869b34 100644 --- a/sdk/daml-assistant/daml-project-config/DA/Daml/Project/Config.hs +++ b/sdk/daml-assistant/daml-project-config/DA/Daml/Project/Config.hs @@ -104,7 +104,7 @@ transformSubmatch = fmap (fmap toSubMatch . Array.elems) . Array.elems toSubMatch :: (Text, (Int, Int)) -> SubMatch toSubMatch (smText, (smStart, smLength)) = let smEnd = smStart + smLength in SubMatch {..} --- Replaces all occurences of a regex pattern in a string using a replacement function +-- Replaces all occurrences of a regex pattern in a string using a replacement function -- Replacement function runs in a monad replaceAllInM :: forall m. Monad m => String -> Text -> ([SubMatch] -> m Text) -> m Text replaceAllInM needle haystack replacer = do diff --git a/sdk/daml-assistant/src/DA/Daml/Assistant/Version.hs b/sdk/daml-assistant/src/DA/Daml/Assistant/Version.hs index 3b3ac13f0b6e..c1f0805f99df 100644 --- a/sdk/daml-assistant/src/DA/Daml/Assistant/Version.hs +++ b/sdk/daml-assistant/src/DA/Daml/Assistant/Version.hs @@ -238,7 +238,7 @@ getAvailableSdkSnapshotVersions :: UseCache -> IO ([ReleaseVersion], CacheAge) getAvailableSdkSnapshotVersions useCache = cacheAvailableSdkVersions useCache (\_ -> getAvailableSdkSnapshotVersionsUncached (damlPath useCache) >>= flattenSnapshotsList) --- | Find the first occurence of a version on Github, without the cache. Keep in +-- | Find the first occurrence of a version on Github, without the cache. Keep in -- mind that versions are not sorted. findAvailableSdkSnapshotVersion :: Maybe DamlPath -> (ReleaseVersion -> Bool) -> IO (Maybe ReleaseVersion) findAvailableSdkSnapshotVersion damlPathMb pred = diff --git a/sdk/daml-script/daml/Daml/Script/Internal/Questions/Submit.daml b/sdk/daml-script/daml/Daml/Script/Internal/Questions/Submit.daml index 753107748d3e..e0c038b1cd18 100644 --- a/sdk/daml-script/daml/Daml/Script/Internal/Questions/Submit.daml +++ b/sdk/daml-script/daml/Daml/Script/Internal/Questions/Submit.daml @@ -287,7 +287,7 @@ submitTree : (HasCallStack, ScriptSubmit script, IsSubmitOptions options) => opt submitTree opts cmds = snd <$> submitResultAndTree opts cmds -- | MOVE Daml.Script --- Submit a transaction and recieve back either the result, or a `SubmitError`. +-- Submit a transaction and receive back either the result, or a `SubmitError`. -- In the majority of failures, this will not crash at runtime. trySubmit : (HasCallStack, ScriptSubmit script, IsSubmitOptions options) => options -> Commands a -> script (Either SubmitError a) trySubmit opts cmds = fmap fst <$> trySubmitResultAndTree opts cmds diff --git a/sdk/docs/sharable/hoogle/daml-base-hoogle.txt b/sdk/docs/sharable/hoogle/daml-base-hoogle.txt index f5695e328966..bc3e534f6ad5 100644 --- a/sdk/docs/sharable/hoogle/daml-base-hoogle.txt +++ b/sdk/docs/sharable/hoogle/daml-base-hoogle.txt @@ -3580,7 +3580,7 @@ find :: (a -> Bool) -> NonEmpty a -> Optional a @url https://docs.digitalasset.com/build/3.4/reference/daml/stdlib/DA-NonEmpty.html#function-da-nonempty-deleteby-6333 deleteBy :: (a -> a -> Bool) -> a -> NonEmpty a -> [a] --- | Remove the first occurence of x from the non-empty list, potentially +-- | Remove the first occurrence of x from the non-empty list, potentially -- removing all elements. @url https://docs.digitalasset.com/build/3.4/reference/daml/stdlib/DA-NonEmpty.html#function-da-nonempty-delete-59160 delete :: (Eq a) => a -> NonEmpty a -> [a] diff --git a/sdk/docs/sharable/hoogle/daml-script-hoogle.txt b/sdk/docs/sharable/hoogle/daml-script-hoogle.txt index 2bc5a1f93e8b..0a895bd47faf 100644 --- a/sdk/docs/sharable/hoogle/daml-script-hoogle.txt +++ b/sdk/docs/sharable/hoogle/daml-script-hoogle.txt @@ -807,7 +807,7 @@ submitWithOptions :: (HasCallStack, ScriptSubmit script, IsSubmitOptions options @url https://docs.daml.com/daml-script/api/Daml-Script.html#function-daml-script-internal-questions-submit-submittree-5925 submitTree :: (HasCallStack, ScriptSubmit script, IsSubmitOptions options) => options -> Commands a -> script TransactionTree --- | Submit a transaction and recieve back either the result, or a `SubmitError`. +-- | Submit a transaction and receive back either the result, or a `SubmitError`. -- In the majority of failures, this will not crash at runtime. @url https://docs.daml.com/daml-script/api/Daml-Script.html#function-daml-script-internal-questions-submit-trysubmit-23693 trySubmit :: (HasCallStack, ScriptSubmit script, IsSubmitOptions options) => options -> Commands a -> script (Either SubmitError a) diff --git a/sdk/docs/sharable/sdk/reference/daml-script/api/Daml-Script.rst b/sdk/docs/sharable/sdk/reference/daml-script/api/Daml-Script.rst index 4372d83e027a..61a140d52306 100644 --- a/sdk/docs/sharable/sdk/reference/daml-script/api/Daml-Script.rst +++ b/sdk/docs/sharable/sdk/reference/daml-script/api/Daml-Script.rst @@ -1583,7 +1583,7 @@ Functions `trySubmit `_ \: (`HasCallStack `_, `ScriptSubmit `_ script, `IsSubmitOptions `_ options) \=\> options \-\> `Commands `_ a \-\> script (`Either `_ `SubmitError `_ a) - Submit a transaction and recieve back either the result, or a ``SubmitError``\. + Submit a transaction and receive back either the result, or a ``SubmitError``\. In the majority of failures, this will not crash at runtime\. .. _function-daml-script-internal-questions-submit-trysubmittree-68085: diff --git a/sdk/docs/sharable/sdk/reference/daml/stdlib/DA-NonEmpty.rst b/sdk/docs/sharable/sdk/reference/daml/stdlib/DA-NonEmpty.rst index 4d04fc906efd..272392a21ca6 100644 --- a/sdk/docs/sharable/sdk/reference/daml/stdlib/DA-NonEmpty.rst +++ b/sdk/docs/sharable/sdk/reference/daml/stdlib/DA-NonEmpty.rst @@ -89,7 +89,7 @@ Functions `delete `_ \: :ref:`Eq ` a \=\> a \-\> :ref:`NonEmpty ` a \-\> \[a\] - Remove the first occurence of x from the non\-empty list, potentially + Remove the first occurrence of x from the non\-empty list, potentially removing all elements\. .. _function-da-nonempty-foldl1-17561: