-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from ElaraLang/14-renamer-doesnt-seem-to-actua…
…lly-take-into-account-whether-things-are-imported Fix #14
- Loading branch information
Showing
9 changed files
with
193 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ dependencies: | |
- hashable | ||
- process | ||
- stringsearch | ||
- text-metrics | ||
|
||
ghc-options: | ||
- -Wall | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# inspired by https://github.com/orhun/git-cliff/blob/main/release.sh | ||
|
||
new_version=$(git cliff --bumped-version) | ||
echo "New version: $new_version" | ||
|
||
# update package.yaml version | ||
sed -E -i '' "s/^version: \"[^\"]*\"$/version: \"${new_version#v}\"/" package.yaml | ||
# and the cabal file | ||
hpack | ||
|
||
|
||
# Update changelog | ||
git cliff --tag "${new_version}" > CHANGELOG.md | ||
git add -A && git commit -m "chore(release): prepare for ${new_version}" | ||
git show | ||
|
||
# generate a changelog for the tag message | ||
export GIT_CLIFF_TEMPLATE="\ | ||
{% for group, commits in commits | group_by(attribute=\"group\") %} | ||
{{ group | upper_first }}\ | ||
{% for commit in commits %} | ||
- {% if commit.breaking %}(breaking) {% endif %}{{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\ | ||
{% endfor %} | ||
{% endfor %}" | ||
changelog=$(git cliff --unreleased --strip all) | ||
|
||
git tag -s -a "${new_version}" -m "Release ${new_version}" -m "${changelog}" | ||
git tag -v "${new_version}" | ||
|
||
echo "Release ready. Run 'git push --follow-tags' to push the changes and tags." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import Prelude | ||
import Option | ||
import List | ||
import Elara.Prim | ||
|
||
let inc x = x + 1 | ||
|
||
let main = | ||
print (Option.map inc (Some 5)) | ||
print (map incc (Some 5)) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
module Prelude | ||
import Elara.Prim | ||
import List | ||
|
||
def (*>) : IO a -> IO b -> IO b | ||
let (*>) a b = a >>= \x -> b | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters