Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/compiler/damlc/daml-stdlib-src/DA/NonEmpty.daml
Original file line number Diff line number Diff line change
Expand Up @@ -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 (==)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sdk/daml-assistant/src/DA/Daml/Assistant/Version.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sdk/docs/sharable/hoogle/daml-base-hoogle.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/docs/sharable/hoogle/daml-script-hoogle.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.